From b391a20434e74db0c860cd258acf87a1731e2a0c Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Sat, 25 Jun 2022 17:49:34 +0000 Subject: [PATCH] Move mx_EventTile_e2eIcon style out of mx_EventTile:not([data-layout=bubble]) (#8895) --- res/css/views/rooms/_EventTile.scss | 16 ++++++++-------- res/css/views/rooms/_IRCLayout.scss | 7 +------ 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/res/css/views/rooms/_EventTile.scss b/res/css/views/rooms/_EventTile.scss index b4538fe1c4..768eeb5e85 100644 --- a/res/css/views/rooms/_EventTile.scss +++ b/res/css/views/rooms/_EventTile.scss @@ -79,6 +79,10 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss &[data-layout=irc], &[data-layout=group] { + .mx_EventTile_e2eIcon { + position: absolute; + } + .mx_MImageBody { margin-right: 34px; } @@ -112,6 +116,10 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss line-height: $font-22px; } + .mx_EventTile_e2eIcon { + inset: 6px 0 0 44px; + } + .mx_ThreadSummary, .mx_ThreadSummaryIcon { margin-left: $left-gutter; @@ -295,14 +303,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss min-width: $font-44px; } } - - .mx_EventTile_e2eIcon { - position: absolute; - top: 6px; - left: 44px; - bottom: 0; - right: 0; - } } .mx_GenericEventListSummary:not([data-layout=bubble]) { diff --git a/res/css/views/rooms/_IRCLayout.scss b/res/css/views/rooms/_IRCLayout.scss index edd2154e29..f7748b8609 100644 --- a/res/css/views/rooms/_IRCLayout.scss +++ b/res/css/views/rooms/_IRCLayout.scss @@ -80,12 +80,7 @@ $irc-line-height: $font-18px; text-align: right; } - > .mx_EventTile_e2eIcon { - position: absolute; - right: unset; - left: unset; - top: 0; - + .mx_EventTile_e2eIcon { padding: 0; flex-shrink: 0;