Skip to content

Commit efca98f

Browse files
committed
(UI) add blurry background to message options
1 parent ac98bab commit efca98f

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

src/ChatWindow/Message.vue

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,16 @@
116116
</span>
117117
</div>
118118

119+
<transition name="fade-message">
120+
<div
121+
v-if="messageHover"
122+
class="options-container"
123+
:class="{
124+
'options-me': message.sender_id === currentUserId
125+
}"
126+
></div>
127+
</transition>
128+
119129
<transition name="slide-left">
120130
<div
121131
ref="actionIcon"
@@ -127,7 +137,7 @@
127137
</div>
128138
</transition>
129139

130-
<transition name="fade-image">
140+
<transition name="slide-left">
131141
<emoji-picker
132142
class="message-reactions"
133143
v-if="isMessageReactions"
@@ -622,6 +632,21 @@ export default {
622632
}
623633
}
624634
635+
.options-container {
636+
position: absolute;
637+
top: 8px;
638+
right: 15px;
639+
height: 26px;
640+
width: 60px;
641+
border-radius: 0 8px;
642+
background: var(--chat-message-bg-color);
643+
filter: blur(4px);
644+
}
645+
646+
.options-me {
647+
background: var(--chat-message-bg-color-me);
648+
}
649+
625650
.image-buttons {
626651
position: absolute;
627652
width: 100%;

0 commit comments

Comments
 (0)