fix: chat tab(progress: 40%)

This commit is contained in:
MoonLeeeaf
2024-06-15 23:36:35 +08:00
parent 45f557cd94
commit 39b9127df8
2 changed files with 4 additions and 3 deletions

View File

@@ -88,5 +88,6 @@
.message-image { .message-image {
max-width: 40%; max-width: 40%;
max-height: 40%; max-height: 40%;
margin: -5px;
border-radius: 15px; border-radius: 15px;
} }

View File

@@ -334,7 +334,7 @@ class ChatTabManager {
}) })
menu.open() 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 eventType = e.type
let self = $(e.target) let self = $(e.target)
@@ -344,8 +344,8 @@ class ChatTabManager {
e.preventDefault() // 阻止默认行为 e.preventDefault() // 阻止默认行为
callback(self) callback(self)
break break
case 'click': case 'dblclick':
if (!isMobile()) return //if (!isMobile()) return
callback(self) callback(self)
break break
} }