Skip to content

Commit

Permalink
Keep the "Hi <username>!" text to one line (#17162)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjb committed Apr 25, 2019
1 parent 8056780 commit b19d8cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shared/router-v2/tab-bar/index.desktop.js
Expand Up @@ -112,7 +112,7 @@ class TabBar extends React.PureComponent<Props, State> {
style={styles.avatar}
/>
<>
<Kb.Text className="username" type="BodyTinySemibold" style={styles.username}>
<Kb.Text className="username" lineClamp={1} type="BodyTinySemibold" style={styles.username}>
Hi {p.username}!
</Kb.Text>
<Kb.Icon
Expand Down Expand Up @@ -179,7 +179,9 @@ const styles = Styles.styleSheetCreate({
paddingRight: 12,
position: 'relative',
},
username: {color: Styles.globalColors.blue3, flexGrow: 1},
username: Styles.platformStyles({
isElectron: {color: Styles.globalColors.blue3, flexGrow: 1, wordBreak: 'break-all'},
}),
})

const keysMap = Tabs.desktopTabOrder.reduce((map, tab, index) => {
Expand Down

0 comments on commit b19d8cf

Please sign in to comment.