From 129ebd89896d015aa721d97e5b9b55c0b9ab5f6c Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Thu, 28 Apr 2022 19:02:03 +0000 Subject: [PATCH 1/4] Add margin to the location map inside ThreadView Signed-off-by: Suguru Hirahara --- res/css/views/rooms/_EventTile.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/res/css/views/rooms/_EventTile.scss b/res/css/views/rooms/_EventTile.scss index dce0c580736..ceddda0818c 100644 --- a/res/css/views/rooms/_EventTile.scss +++ b/res/css/views/rooms/_EventTile.scss @@ -887,6 +887,7 @@ $left-gutter: 64px; .mx_RedactedBody, .mx_UnknownBody, .mx_MPollBody, + .mx_MLocationBody, .mx_ReplyChain_wrapper, .mx_ReactionsRow { margin-left: $spacing-start; From e8970abda4aca472410237922e62f205bb1df3e7 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Thu, 28 Apr 2022 19:24:50 +0000 Subject: [PATCH 2/4] Remove margin from location map inside a reply Signed-off-by: Suguru Hirahara --- res/css/views/rooms/_EventTile.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/res/css/views/rooms/_EventTile.scss b/res/css/views/rooms/_EventTile.scss index ceddda0818c..eedc7b34a6c 100644 --- a/res/css/views/rooms/_EventTile.scss +++ b/res/css/views/rooms/_EventTile.scss @@ -901,6 +901,13 @@ $left-gutter: 64px; } } + .mx_ReplyChain_wrapper { + .mx_MLocationBody { + margin-inline-start: 0; + margin-inline-end: 0; + } + } + .mx_MessageTimestamp { top: 2px !important; width: auto; From d5ca23ce40482763dca6123dfef87f09915aabc5 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Thu, 28 Apr 2022 19:28:00 +0000 Subject: [PATCH 3/4] Add margin to the location map error message inside ThreadView Signed-off-by: Suguru Hirahara --- res/css/views/rooms/_EventTile.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/res/css/views/rooms/_EventTile.scss b/res/css/views/rooms/_EventTile.scss index eedc7b34a6c..eb312eb8a3a 100644 --- a/res/css/views/rooms/_EventTile.scss +++ b/res/css/views/rooms/_EventTile.scss @@ -883,6 +883,7 @@ $left-gutter: 64px; width: 100%; .mx_EventTile_content, + .mx_EventTile_body, .mx_HiddenBody, .mx_RedactedBody, .mx_UnknownBody, From 74ab872934e87443aacb0825b5ae4e86c1604e16 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Fri, 29 Apr 2022 08:05:58 +0000 Subject: [PATCH 4/4] Add margin-top to the map inside a reply Signed-off-by: Suguru Hirahara --- res/css/views/rooms/_EventTile.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/res/css/views/rooms/_EventTile.scss b/res/css/views/rooms/_EventTile.scss index eb312eb8a3a..343c823be1a 100644 --- a/res/css/views/rooms/_EventTile.scss +++ b/res/css/views/rooms/_EventTile.scss @@ -844,6 +844,12 @@ $left-gutter: 64px; padding-left: 0; padding-right: 0; } + + .mx_ReplyChain { + .mx_MLocationBody { + margin-top: 6px; // See: https://github.com/matrix-org/matrix-react-sdk/pull/8442 + } + } } .mx_EventTile:not([data-layout=bubble]) {