Skip to content

Commit

Permalink
(fix) message blur width
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine92190 committed Apr 20, 2020
1 parent c2ab860 commit 229a052
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions src/ChatWindow/Message.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@
<div
class="options-container"
:class="{ 'options-image': isImage && !message.replyMessage }"
:style="{ width: optionsBlurWidth }"
:style="{
width:
filteredMessageActions.length && showReactionEmojis
? '70px'
: '45px'
}"
>
<transition-group name="slide-left">
<div
Expand Down Expand Up @@ -351,13 +356,6 @@ export default {
return this.message.sender_id === this.currentUserId
? this.messageActions
: this.messageActions.filter(message => !message.onlyMe)
},
optionsBlurWidth() {
if (this.filteredMessageActions.length && this.showReactionEmojis) {
return this.isImage ? '69px' : '72px'
} else {
return this.isImage ? '44px' : '47px'
}
}
},
Expand Down Expand Up @@ -697,14 +695,9 @@ export default {
background: var(--chat-message-bg-color-me);
}
.options-image {
width: 69px;
height: 40px;
.blur-container {
background: rgba(255, 255, 255, 0.6);
border-bottom-left-radius: 15px;
}
.options-image .blur-container {
background: rgba(255, 255, 255, 0.6);
border-bottom-left-radius: 15px;
}
.image-buttons {
Expand Down

0 comments on commit 229a052

Please sign in to comment.