Fix the Edited post incorrect line spacing on Android (#9170)
This commit is contained in:
parent
42988fddc3
commit
a8ddf0472a
1 changed files with 13 additions and 4 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue