From 12af3038a8fa949851319706f4c24f313d64df49 Mon Sep 17 00:00:00 2001 From: Kerry Date: Tue, 3 May 2022 13:51:50 +0200 Subject: [PATCH] fix message indent in thread view (#8462) Signed-off-by: Kerry Archibald Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> --- 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 a849c5fedb..d802c4f9fb 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 94abc1c7a8..ff87af1dc3 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 2edfc8e22d..cc742223eb 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`] = `