From 60aac656a5e6aceaddcab2129e9d7f59b4cbf14c Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Fri, 27 May 2022 23:22:54 +0900 Subject: [PATCH 1/2] Remove inline margin from UTD error message inside a reply tile on ThreadView Signed-off-by: Suguru Hirahara --- res/css/views/rooms/_EventTile.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/res/css/views/rooms/_EventTile.scss b/res/css/views/rooms/_EventTile.scss index a3a1acdcd17..1c636d8599e 100644 --- a/res/css/views/rooms/_EventTile.scss +++ b/res/css/views/rooms/_EventTile.scss @@ -923,6 +923,14 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss } } + .mx_ReplyChain_wrapper { + // Error message inside ReplyTile + .mx_UnknownBody { + margin-inline: unset; + line-height: var(--GroupLayout-EventTile-line-height); + } + } + .mx_EventTile_mediaLine { // such as MImageBody > div, From 778b85f39bdc7ff601e7503d423eac172b6baa2c Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Fri, 27 May 2022 23:33:11 +0900 Subject: [PATCH 2/2] Merge 'mx_ReplyChain_wrapper' blocks Signed-off-by: Suguru Hirahara --- res/css/views/rooms/_EventTile.scss | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/res/css/views/rooms/_EventTile.scss b/res/css/views/rooms/_EventTile.scss index 1c636d8599e..3f2a1fbf19c 100644 --- a/res/css/views/rooms/_EventTile.scss +++ b/res/css/views/rooms/_EventTile.scss @@ -924,10 +924,9 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss } .mx_ReplyChain_wrapper { - // Error message inside ReplyTile - .mx_UnknownBody { + .mx_MLocationBody, + .mx_UnknownBody { // Error message inside ReplyTile margin-inline: unset; - line-height: var(--GroupLayout-EventTile-line-height); } } @@ -945,13 +944,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss } } - .mx_ReplyChain_wrapper { - .mx_MLocationBody { - margin-inline-start: 0; - margin-inline-end: 0; - } - } - .mx_MessageTimestamp { top: 2px; // Align with mx_EventTile_content }