Fix the Edited post incorrect line spacing on Android (#9170)

This commit is contained in:
Rajat Dabade 2025-10-01 18:56:57 +05:30 committed by GitHub
parent 42988fddc3
commit a8ddf0472a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,15 +30,24 @@ const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => {
android: blendColors(theme.centerChannelBg, theme.centerChannelColor, 0.3), 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 { return {
editedIndicatorText: { editedIndicatorText: {
color: editedColor,
opacity: editedOpacity,
fontStyle: 'italic',
...typography('Body', 25, 'Regular'), ...typography('Body', 25, 'Regular'),
...baseTextStyle,
}, },
editedText: { editedText: {
...typography('Body', 100, 'Regular'), ...typography('Body', 100, 'Regular'),
...baseTextStyle,
},
icon: {
color: editedColor,
}, },
}; };
}); });
@ -69,7 +78,7 @@ const EditedIndicator = ({
<CompassIcon <CompassIcon
name='pencil-outline' name='pencil-outline'
size={iconSize} size={iconSize}
color={theme.centerChannelColor} color={style.icon.color}
/> />
<FormattedText <FormattedText
id='post_message_view.edited' id='post_message_view.edited'