From acaf0995e4ec48502aaa96364be6a276b3ab9f1e Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Sat, 7 May 2022 03:43:19 +0900 Subject: [PATCH] Add margin-top to the location body which is a sibling of DisambiguatedProfile Signed-off-by: Suguru Hirahara --- res/css/views/messages/_MLocationBody.scss | 4 ++++ res/css/views/rooms/_EventTile.scss | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/res/css/views/messages/_MLocationBody.scss b/res/css/views/messages/_MLocationBody.scss index adca4ae4ba6..cbbd34526db 100644 --- a/res/css/views/messages/_MLocationBody.scss +++ b/res/css/views/messages/_MLocationBody.scss @@ -38,3 +38,7 @@ limitations under the License. max-width: 100%; width: 450px; } + +.mx_DisambiguatedProfile ~ .mx_MLocationBody { + margin-top: 6px; // See: https://github.com/matrix-org/matrix-react-sdk/pull/8442 +} diff --git a/res/css/views/rooms/_EventTile.scss b/res/css/views/rooms/_EventTile.scss index 6f2fb704983..e8480acde02 100644 --- a/res/css/views/rooms/_EventTile.scss +++ b/res/css/views/rooms/_EventTile.scss @@ -842,12 +842,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss padding-right: 0; } - .mx_ReplyChain { - .mx_MLocationBody { - margin-top: 6px; // See: https://github.com/matrix-org/matrix-react-sdk/pull/8442 - } - } - &:not([data-layout=bubble]) { padding-top: $spacing-16; }