From 712324c756b1e11d4082a794602e6c1b11348607 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Tue, 20 Dec 2022 05:09:27 +0200 Subject: [PATCH] Remove lineHeight from post so that it does not break inline images (#6883) --- app/components/markdown/markdown_image/index.tsx | 3 ++- app/components/post_list/post/body/message/message.tsx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/components/markdown/markdown_image/index.tsx b/app/components/markdown/markdown_image/index.tsx index 3f734ee2e..b26616259 100644 --- a/app/components/markdown/markdown_image/index.tsx +++ b/app/components/markdown/markdown_image/index.tsx @@ -59,7 +59,8 @@ const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => ({ height: 24, }, container: { - marginBottom: 5, + marginVertical: 5, + top: 5, }, svg: { backgroundColor: changeOpacity(theme.centerChannelColor, 0.06), diff --git a/app/components/post_list/post/body/message/message.tsx b/app/components/post_list/post/body/message/message.tsx index 74df04462..001bbff23 100644 --- a/app/components/post_list/post/body/message/message.tsx +++ b/app/components/post_list/post/body/message/message.tsx @@ -44,6 +44,7 @@ const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => { message: { color: theme.centerChannelColor, ...typography('Body', 200), + lineHeight: undefined, // remove line height, not needed and causes problems with md images }, pendingPost: { opacity: 0.5,