From 333d4517b51cb4ffb8389e1f560cbaeaeb76cdb1 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 18 Aug 2023 17:14:27 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E6=9D=A1=E5=AF=BC=E8=87=B4=E9=A1=B5=E9=9D=A2=E6=8A=96=E5=8A=A8?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/sass/pages/common.scss | 33 ----------------- .../sass/pages/components/chat-input.scss | 35 ++----------------- 2 files changed, 2 insertions(+), 66 deletions(-) diff --git a/resources/assets/sass/pages/common.scss b/resources/assets/sass/pages/common.scss index 4b529bd48..3ddce5d87 100755 --- a/resources/assets/sass/pages/common.scss +++ b/resources/assets/sass/pages/common.scss @@ -534,39 +534,6 @@ body { .ivu-table-body { flex: 1; overflow: auto; - overflow-y: overlay !important; - - &::-webkit-scrollbar { - width: 0; - height: 0; - } - - &::-webkit-scrollbar-thumb { - border: 3px solid transparent; - background-color: rgba(0, 0, 0, .2); - background-clip: content-box; - border-radius: 12px; - &:hover { - border: 2px solid transparent; - background-color: rgba(0, 0, 0, .2); - } - &:active { - border: 2px solid transparent; - background-color: rgba(0, 0, 0, .4); - } - } - - &::-webkit-scrollbar-track { - border-radius: 12px; - background: rgba(0, 0, 0, 0); - } - - &:hover { - &::-webkit-scrollbar { - width: 12px; - height: 12px; - } - } } } } diff --git a/resources/assets/sass/pages/components/chat-input.scss b/resources/assets/sass/pages/components/chat-input.scss index b0234613e..a9c9ab47b 100755 --- a/resources/assets/sass/pages/components/chat-input.scss +++ b/resources/assets/sass/pages/components/chat-input.scss @@ -670,7 +670,8 @@ min-width: 220px; max-width: 280px; max-height: 360px; - overflow-y: overlay; + overflow-x: hidden; + overflow-y: auto; &.task-mention { .ql-mention-list { @@ -688,38 +689,6 @@ } } - &::-webkit-scrollbar { - width: 0; - height: 0; - } - - &::-webkit-scrollbar-thumb { - border: 3px solid transparent; - background-color: rgba(0, 0, 0, .2); - background-clip: content-box; - border-radius: 12px; - &:hover { - border: 2px solid transparent; - background-color: rgba(0, 0, 0, .2); - } - &:active { - border: 2px solid transparent; - background-color: rgba(0, 0, 0, .4); - } - } - - &::-webkit-scrollbar-track { - border-radius: 12px; - background: rgba(0, 0, 0, 0); - } - - &:hover { - &::-webkit-scrollbar { - width: 12px; - height: 12px; - } - } - .ql-mention-list { > li { &:first-child {