Skip to content

Commit

Permalink
我爱 webkit
Browse files Browse the repository at this point in the history
🐛 修正在 webkit 下图片预览起出界的问题 <- #134
🐛 修正消息选择在触屏设备下消息背景的异常
🐛 修正一个消息列表元素 key 错误的问题
  • Loading branch information
Stapxs committed Nov 18, 2024
1 parent 2ba7cbe commit 166a3be
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
</Transition>
<viewer
class="viewer" ref="viewer"
v-show="runtimeData.tags.viewer.show"
:options="viewerOpt"
:images="runtimeData.chatInfo.info.image_list"
@inited="viewerInited"
Expand Down
2 changes: 0 additions & 2 deletions src/assets/css/chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ input {
pointer-events: none;
transition: all .3s;
position: absolute;
user-select: text;
display: flex;
height: 100%;
left: 371px;
Expand Down Expand Up @@ -384,7 +383,6 @@ input {

.msg-menu {
position: absolute;
user-select: none;
overflow: hidden;
height: 100%;
width: 100%;
Expand Down
1 change: 1 addition & 0 deletions src/assets/css/msg.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

.message {
user-select: text;
transition: background .3s;
display: flex;
padding: 5px 10px 10px 10px;
Expand Down
4 changes: 1 addition & 3 deletions src/assets/css/view.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
html, body {
background: var(--color-main);
font-family: 'Arial', 'Helvetica', 'sans-serif';
background: var(--color-main);
user-select: none;
overflow: hidden;
height: 100%;
Expand Down Expand Up @@ -390,7 +390,6 @@ textarea:focus {
}

.friend-body {
user-select: none;
cursor: pointer;
display: flex;
flex-direction: row;
Expand Down Expand Up @@ -643,7 +642,6 @@ textarea:focus {
}
.app-msg > div > a {
color: var(--color-font-r);
user-select: none;
margin: 0 10px;
}
.app-msg > div > div:last-child {
Expand Down
1 change: 0 additions & 1 deletion src/pages/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1694,7 +1694,6 @@ export default defineComponent({
setTimeout(() => {
logger.add(LogType.UI, '消息触屏长按判定:' + this.tags.msgTouch.msgOnTouchDown)
if (this.tags.msgTouch.msgOnTouchDown === true) {
sender.style.background = '#00000008'
this.showMsgMeun(event, msg)
}
}, 400)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Messages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
@click="systemNoticeClick"></FriendBody>
<!-- 其他消息 -->
<FriendBody v-for="item in runtimeData.onMsgList"
:key="'inMessage-' + item.user_id ? item.user_id : item.group_id"
:key="'inMessage-' + (item.user_id ? item.user_id : item.group_id)"
:select="chat.show.id === item.user_id || (chat.show.id === item.group_id && chat.group_name != '')"
:menu="menu.select && menu.select == item"
:data="item" from="message"
Expand Down

0 comments on commit 166a3be

Please sign in to comment.