Match lineHeight used in ChannelInfoHeader to PostBody's (#2721)
* Match lineHeight used in ChannelInfoHeader to PostBody's * Apply lineHeight only for iOS
This commit is contained in:
parent
39587aa3ae
commit
9982a2d73f
1 changed files with 6 additions and 2 deletions
|
|
@ -6,6 +6,7 @@ import PropTypes from 'prop-types';
|
|||
import {
|
||||
Text,
|
||||
View,
|
||||
Platform,
|
||||
} from 'react-native';
|
||||
|
||||
import ChannelIcon from 'app/components/channel_icon';
|
||||
|
|
@ -52,6 +53,9 @@ export default class ChannelInfoHeader extends React.PureComponent {
|
|||
const style = getStyleSheet(theme);
|
||||
const textStyles = getMarkdownTextStyles(theme);
|
||||
const blockStyles = getMarkdownBlockStyles(theme);
|
||||
const baseTextStyle = Platform.OS === 'ios' ?
|
||||
{...style.detail, lineHeight: 20} :
|
||||
style.detail;
|
||||
|
||||
return (
|
||||
<View style={style.container}>
|
||||
|
|
@ -84,7 +88,7 @@ export default class ChannelInfoHeader extends React.PureComponent {
|
|||
<Markdown
|
||||
navigator={navigator}
|
||||
onPermalinkPress={onPermalinkPress}
|
||||
baseTextStyle={style.detail}
|
||||
baseTextStyle={baseTextStyle}
|
||||
textStyles={textStyles}
|
||||
blockStyles={blockStyles}
|
||||
value={purpose}
|
||||
|
|
@ -101,7 +105,7 @@ export default class ChannelInfoHeader extends React.PureComponent {
|
|||
<Markdown
|
||||
navigator={navigator}
|
||||
onPermalinkPress={onPermalinkPress}
|
||||
baseTextStyle={style.detail}
|
||||
baseTextStyle={baseTextStyle}
|
||||
textStyles={textStyles}
|
||||
blockStyles={blockStyles}
|
||||
value={header}
|
||||
|
|
|
|||
Loading…
Reference in a new issue