From f07a7ba36a81149eb23337c03e5f6bad206629c8 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Fri, 24 Jun 2022 12:38:47 +0900 Subject: [PATCH] Stop using :not() pseudo class for mx_MImageBody to decrease the specificity of the rule for images on file panel Signed-off-by: Suguru Hirahara --- res/css/structures/_FilePanel.scss | 4 ---- res/css/views/rooms/_EventTile.scss | 9 +++++++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/res/css/structures/_FilePanel.scss b/res/css/structures/_FilePanel.scss index 634ce9604cc..f8d6469568d 100644 --- a/res/css/structures/_FilePanel.scss +++ b/res/css/structures/_FilePanel.scss @@ -55,10 +55,6 @@ limitations under the License. } } -.mx_FilePanel .mx_EventTile .mx_MImageBody { - margin-right: 0px; -} - .mx_FilePanel .mx_EventTile .mx_MFileBody { line-height: 2.4rem; } diff --git a/res/css/views/rooms/_EventTile.scss b/res/css/views/rooms/_EventTile.scss index d531f3932b4..ca1ff4feedb 100644 --- a/res/css/views/rooms/_EventTile.scss +++ b/res/css/views/rooms/_EventTile.scss @@ -72,6 +72,13 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss gap: $spacing-4; } + &[data-layout=irc], + &[data-layout=group] { + .mx_MImageBody { + margin-right: 34px; + } + } + &[data-layout=group] { > .mx_DisambiguatedProfile { line-height: $font-20px; @@ -275,8 +282,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss } .mx_MImageBody { - margin-right: 34px; - .mx_MImageBody_thumbnail_container { justify-content: flex-start; min-height: $font-44px;