From fd1c09eb7ca46ab4d222dfaefe39a80bc13206be Mon Sep 17 00:00:00 2001 From: Kerry Archibald Date: Mon, 2 May 2022 10:21:11 +0200 Subject: [PATCH] fix message indent in thread view Signed-off-by: Kerry Archibald --- res/css/views/rooms/_EventTile.scss | 1 - src/components/views/messages/MLocationBody.tsx | 2 +- .../views/messages/__snapshots__/MLocationBody-test.tsx.snap | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/res/css/views/rooms/_EventTile.scss b/res/css/views/rooms/_EventTile.scss index a849c5fedb1..d802c4f9fb6 100644 --- a/res/css/views/rooms/_EventTile.scss +++ b/res/css/views/rooms/_EventTile.scss @@ -886,7 +886,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss width: 100%; .mx_EventTile_content, - .mx_EventTile_body, .mx_HiddenBody, .mx_RedactedBody, .mx_UnknownBody, diff --git a/src/components/views/messages/MLocationBody.tsx b/src/components/views/messages/MLocationBody.tsx index 94abc1c7a88..ff87af1dc3a 100644 --- a/src/components/views/messages/MLocationBody.tsx +++ b/src/components/views/messages/MLocationBody.tsx @@ -96,7 +96,7 @@ export const LocationBodyFallbackContent: React.FC<{ event: MatrixEvent, error: (_t('Shared their location: ') + event.getContent()?.body) : (_t('Shared a location: ') + event.getContent()?.body); - return
+ return
{ message } diff --git a/test/components/views/messages/__snapshots__/MLocationBody-test.tsx.snap b/test/components/views/messages/__snapshots__/MLocationBody-test.tsx.snap index 2edfc8e22d3..cc742223eba 100644 --- a/test/components/views/messages/__snapshots__/MLocationBody-test.tsx.snap +++ b/test/components/views/messages/__snapshots__/MLocationBody-test.tsx.snap @@ -2,7 +2,7 @@ exports[`MLocationBody with error displays correct fallback content when map_style_url is misconfigured 1`] = `
with error displays correct fallback cont exports[`MLocationBody with error displays correct fallback content without error style when map_style_url is not configured 1`] = `