From a8ddf0472a23d21629ec64c4a9ad912e575ac03a Mon Sep 17 00:00:00 2001 From: Rajat Dabade Date: Wed, 1 Oct 2025 18:56:57 +0530 Subject: [PATCH] Fix the Edited post incorrect line spacing on Android (#9170) --- app/components/edited_indicator/index.tsx | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/app/components/edited_indicator/index.tsx b/app/components/edited_indicator/index.tsx index 25a9c1e6e..1d23b2eff 100644 --- a/app/components/edited_indicator/index.tsx +++ b/app/components/edited_indicator/index.tsx @@ -30,15 +30,24 @@ const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => { android: blendColors(theme.centerChannelBg, theme.centerChannelColor, 0.3), }); + const baseTextStyle: TextStyle = { + color: editedColor, + opacity: editedOpacity, + fontStyle: 'italic', + lineHeight: undefined, // Use natural line height to avoid shrinking the parent layout. + }; + return { editedIndicatorText: { - color: editedColor, - opacity: editedOpacity, - fontStyle: 'italic', ...typography('Body', 25, 'Regular'), + ...baseTextStyle, }, editedText: { ...typography('Body', 100, 'Regular'), + ...baseTextStyle, + }, + icon: { + color: editedColor, }, }; }); @@ -69,7 +78,7 @@ const EditedIndicator = ({