Skip to content

Commit 229a052

Browse files
committed
(fix) message blur width
1 parent c2ab860 commit 229a052

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

src/ChatWindow/Message.vue

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,12 @@
124124
<div
125125
class="options-container"
126126
:class="{ 'options-image': isImage && !message.replyMessage }"
127-
:style="{ width: optionsBlurWidth }"
127+
:style="{
128+
width:
129+
filteredMessageActions.length && showReactionEmojis
130+
? '70px'
131+
: '45px'
132+
}"
128133
>
129134
<transition-group name="slide-left">
130135
<div
@@ -351,13 +356,6 @@ export default {
351356
return this.message.sender_id === this.currentUserId
352357
? this.messageActions
353358
: this.messageActions.filter(message => !message.onlyMe)
354-
},
355-
optionsBlurWidth() {
356-
if (this.filteredMessageActions.length && this.showReactionEmojis) {
357-
return this.isImage ? '69px' : '72px'
358-
} else {
359-
return this.isImage ? '44px' : '47px'
360-
}
361359
}
362360
},
363361
@@ -697,14 +695,9 @@ export default {
697695
background: var(--chat-message-bg-color-me);
698696
}
699697
700-
.options-image {
701-
width: 69px;
702-
height: 40px;
703-
704-
.blur-container {
705-
background: rgba(255, 255, 255, 0.6);
706-
border-bottom-left-radius: 15px;
707-
}
698+
.options-image .blur-container {
699+
background: rgba(255, 255, 255, 0.6);
700+
border-bottom-left-radius: 15px;
708701
}
709702
710703
.image-buttons {

0 commit comments

Comments
 (0)