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

(cherry picked from commit a8ddf0472a)

Co-authored-by: Rajat Dabade <rajatdabade1997@gmail.com>
This commit is contained in:
Mattermost Build 2025-10-01 18:23:40 +03:00 committed by GitHub
parent a1fb84cf4e
commit d278860998
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),
});
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 = ({
<CompassIcon
name='pencil-outline'
size={iconSize}
color={theme.centerChannelColor}
color={style.icon.color}
/>
<FormattedText
id='post_message_view.edited'