From 2bc6575503f6edf6b89cac679b833d285e653e50 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Fri, 1 Jul 2022 16:25:23 +0900 Subject: [PATCH] Include mx_EventTile_bubbleContainer in mx_EventTile (#8960) --- res/css/views/rooms/_EventTile.scss | 45 ++++++++++++++--------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/res/css/views/rooms/_EventTile.scss b/res/css/views/rooms/_EventTile.scss index 7ae672694c..12d0b5178c 100644 --- a/res/css/views/rooms/_EventTile.scss +++ b/res/css/views/rooms/_EventTile.scss @@ -28,6 +28,28 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss color: $alert; } + &.mx_EventTile_bubbleContainer { + display: grid; + grid-template-columns: 1fr 100px; + + .mx_EventTile_line { + margin-right: 0; + grid-column: 1 / 3; + padding: 0 !important; // override default padding of mx_EventTile_line so that we can be centered + } + + .mx_EventTile_msgOption { + grid-column: 2; + } + + &:hover { + .mx_EventTile_line { + // To avoid bubble events being highlighted + background-color: inherit !important; + } + } + } + .mx_EventTile_avatar { cursor: pointer; user-select: none; @@ -463,29 +485,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss // on ELS we need the margin to allow interaction with the expand/collapse button which is normally in the RR gutter } -.mx_EventTile_bubbleContainer { - display: grid; - grid-template-columns: 1fr 100px; - - .mx_EventTile_line { - margin-right: 0; - grid-column: 1 / 3; - // override default padding of mx_EventTile_line so that we can be centered - padding: 0 !important; - } - - .mx_EventTile_msgOption { - grid-column: 2; - } - - &:hover { - .mx_EventTile_line { - // To avoid bubble events being highlighted - background-color: inherit !important; - } - } -} - .mx_EventTile_bigEmoji { font-size: 48px; line-height: 57px;