Skip to content

Commit c8df87b

Browse files
committed
(UI) improve image options blur
1 parent b9347d7 commit c8df87b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/ChatWindow/Message.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,13 @@
116116
</span>
117117
</div>
118118

119-
<div class="options-container">
119+
<div class="options-container" :class="{ 'options-image': isImage }">
120120
<transition name="slide-left">
121121
<div
122122
v-if="messageHover"
123123
class="blur-container"
124124
:class="{
125-
'options-me': message.sender_id === currentUserId,
126-
'options-image': isImage
125+
'options-me': message.sender_id === currentUserId
127126
}"
128127
></div>
129128
</transition>
@@ -661,7 +660,13 @@ export default {
661660
}
662661
663662
.options-image {
664-
background: rgba(255, 255, 255, 0.8);
663+
width: 67px;
664+
height: 40px;
665+
666+
.blur-container {
667+
background: rgba(255, 255, 255, 0.7);
668+
border-bottom-left-radius: 15px;
669+
}
665670
}
666671
667672
.image-buttons {

0 commit comments

Comments
 (0)