From f9d1aa93c457587879b6a96b5c9a21a658c00592 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 10 May 2024 23:52:41 +0900 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=BE=85=E5=8A=9E?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/js/pages/manage/components/DialogWrapper.vue | 5 ++++- resources/assets/sass/pages/components/chat-input.scss | 9 +++++++++ .../assets/sass/pages/components/dialog-wrapper.scss | 6 ++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/pages/manage/components/DialogWrapper.vue b/resources/assets/js/pages/manage/components/DialogWrapper.vue index 12b8955be..c977e2e98 100644 --- a/resources/assets/js/pages/manage/components/DialogWrapper.vue +++ b/resources/assets/js/pages/manage/components/DialogWrapper.vue @@ -3115,7 +3115,7 @@ export default { this.onPositionId(data.reply_id, data.msg_id) }, - onViewText({target}, el) { + onViewText({target, clientX}, el) { if (this.operateVisible) { return } @@ -3167,6 +3167,9 @@ export default { case "LI": const dataClass = target.getAttribute('data-list') if (['checked', 'unchecked'].includes(dataClass)) { + if (clientX - target.getBoundingClientRect().x > 18) { + return; + } let listElement = el.parentElement; while (listElement) { if (listElement.classList.contains('dialog-scroller')) { diff --git a/resources/assets/sass/pages/components/chat-input.scss b/resources/assets/sass/pages/components/chat-input.scss index 993bcc71d..ad874751c 100755 --- a/resources/assets/sass/pages/components/chat-input.scss +++ b/resources/assets/sass/pages/components/chat-input.scss @@ -190,6 +190,14 @@ width: auto; min-width: 1.2em; } + > .ql-ui:before { + color: #0088ff; + } + &[data-list=bullet] { + > .ql-ui:before { + font-weight: 900; + } + } &[data-list=checked], &[data-list=unchecked] { > .ql-ui:before { @@ -204,6 +212,7 @@ &[data-list=unchecked] { > .ql-ui:before { content: "\e6f1"; + color: #777; } } } diff --git a/resources/assets/sass/pages/components/dialog-wrapper.scss b/resources/assets/sass/pages/components/dialog-wrapper.scss index b97a9734b..fdaab5a28 100644 --- a/resources/assets/sass/pages/components/dialog-wrapper.scss +++ b/resources/assets/sass/pages/components/dialog-wrapper.scss @@ -824,6 +824,12 @@ text-align: left; margin-right: 0.2em; } + + &[data-list=unchecked] { + &::before { + color: #777; + } + } } }