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),
|
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'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue