From 39b9127df8861671a93ce69ee71cb4c89ab69d96 Mon Sep 17 00:00:00 2001 From: MoonLeeeaf <150461955+MoonLeeeaf@users.noreply.github.com> Date: Sat, 15 Jun 2024 23:36:35 +0800 Subject: [PATCH] fix: chat tab(progress: 40%) --- ling_chair_http/chat-message.css | 1 + ling_chair_http/handler.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ling_chair_http/chat-message.css b/ling_chair_http/chat-message.css index 52b5cdf..664fe37 100644 --- a/ling_chair_http/chat-message.css +++ b/ling_chair_http/chat-message.css @@ -88,5 +88,6 @@ .message-image { max-width: 40%; max-height: 40%; + margin: -5px; border-radius: 15px; } diff --git a/ling_chair_http/handler.js b/ling_chair_http/handler.js index a79d3fa..ef4ddfe 100644 --- a/ling_chair_http/handler.js +++ b/ling_chair_http/handler.js @@ -334,7 +334,7 @@ class ChatTabManager { }) menu.open() } - viewBinding.chatTab.on('contextmenu click', 'a[tag=chatTab]', (e) => { + viewBinding.chatTab.on('contextmenu dblclick', 'a[tag=chatTab]', (e) => { let eventType = e.type let self = $(e.target) @@ -344,8 +344,8 @@ class ChatTabManager { e.preventDefault() // 阻止默认行为 callback(self) break - case 'click': - if (!isMobile()) return + case 'dblclick': + //if (!isMobile()) return callback(self) break }