diff --git a/src/assets/css/_mixins.scss b/src/assets/css/_mixins.scss index a575d47..2ff021f 100644 --- a/src/assets/css/_mixins.scss +++ b/src/assets/css/_mixins.scss @@ -1,9 +1 @@ -@mixin emoji-reaction-transform($type: 'right') { - @if $type == 'right' { - transform: translateX(20px) translateX(100%); - } - - @if $type == 'left' { - transform: translateX(-20px) translateX(-100%); - } -} \ No newline at end of file +// Sass Mixins \ No newline at end of file diff --git a/src/assets/css/chat.scss b/src/assets/css/chat.scss index 4bf6dbd..873f015 100644 --- a/src/assets/css/chat.scss +++ b/src/assets/css/chat.scss @@ -352,6 +352,10 @@ body { .message-wrapper { position: relative; user-select: none; + + .quick-reaction-container .emoji { + display: inline; + } } .messageIn { @@ -438,6 +442,13 @@ body { .link { color: inherit; } + .quick-reaction-container { + margin-left: 42px; + + [dir="rtl"] & { + margin-right: 42px; + } + } } .messageOut { @@ -539,6 +550,13 @@ body { .link { color: inherit; } + .quick-reaction-container { + margin-right: 42px; + + [dir="rtl"] & { + margin-left: 42px; + } + } } .sender, @@ -712,53 +730,6 @@ body { text-align: center; } -.quick-reaction-container { - display: inline-block; - position: relative; - vertical-align: bottom; - top: 18px; - z-index: 2; - background-color: #f7f7f7; - border: 1px solid rgba(white, 0.9); - border-radius: 13px; - height: 26px; - width: max-content; - padding: 0px 6px; - @include emoji-reaction-transform('left'); - - .messageOut & { - @include emoji-reaction-transform('right'); - - [dir="rtl"] & { - @include emoji-reaction-transform('left'); - } - } - .quick-reaction { - position: relative; - top: -2px; - margin: 0px 0px; - padding: 1px; - font-size: 10px; - &:hover { - //border: 1px solid #888888; - background-color: #e2e2e2; - } - .quick-reaction-count { - color: #888888; - font-size: 0.7rem; - } - } - .sent .quick-reaction-count { - color: black; - font-weight: 700; - // background-color: palegreen; - } - - [dir="rtl"] & { - @include emoji-reaction-transform('right'); - } -} - .download-overlay { position: absolute; left: 0; diff --git a/src/assets/translations/en.json b/src/assets/translations/en.json index f237d9b..4e07c04 100644 --- a/src/assets/translations/en.json +++ b/src/assets/translations/en.json @@ -7,7 +7,11 @@ "global": { "save": "Save", "password_didnot_match": "Password didn't match", - "password_hint": "Minimum 12 character containing atleast one numeric, one uppercase and one lowercase letter" + "password_hint": "Minimum 12 character containing atleast one numeric, one uppercase and one lowercase letter", + "show_less": "Show less", + "show_more": "Show more", + "add_reaction": "Add reaction", + "click_to_remove": "Click to remove" }, "menu": { "start_private_chat": "Private chat with this user", @@ -83,7 +87,8 @@ "time_ago": "Today | Yesterday | {count} days ago", "outgoing_message_deleted_text": "You deleted this message.", "incoming_message_deleted_text": "This message was deleted.", - "not_allowed_to_send": "Only admins and moderators are allowed to send to the room" + "not_allowed_to_send": "Only admins and moderators are allowed to send to the room", + "reaction_count_more": "{reactionCount} more" }, "room": { "invitations": "You have no invitations | You have 1 invitation | You have {count} invitations", diff --git a/src/components/Chat.vue b/src/components/Chat.vue index fb30d38..74f7ec7 100644 --- a/src/components/Chat.vue +++ b/src/components/Chat.vue @@ -56,7 +56,12 @@ :timelineSet="timelineSet" v-on:send-quick-reaction.stop="sendQuickReaction" v-on:context-menu="showContextMenuForEvent($event)" v-on:own-avatar-clicked="viewProfile" v-on:other-avatar-clicked="showAvatarMenuForEvent($event)" v-on:download="download(event)" - v-on:poll-closed="pollWasClosed(event)" /> + v-on:poll-closed="pollWasClosed(event)" + v-on:more=" + isEmojiQuickReaction = true + showMoreMessageOperations($event) + " + />