Skip to content

Commit

Permalink
Apply mediumWidth to accountRows for tablet (keybase#23720)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickxb authored Apr 14, 2020
1 parent 7d77125 commit 494bbc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shared/router-v2/account-switcher/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const AccountRow = (props: AccountRowProps) => {
}

const AccountsRows = (props: Props) => (
<Kb.Box2 direction="vertical" fullWidth={true}>
<Kb.Box2 direction="vertical" fullWidth={true} style={styles.accountRows}>
{props.accountRows.map(entry => (
<AccountRow
entry={entry}
Expand Down Expand Up @@ -143,6 +143,9 @@ const AccountSwitcher = (props: Props) => (
export default AccountSwitcher

const styles = Styles.styleSheetCreate(() => ({
accountRows: Styles.platformStyles({
isTablet: {maxWidth: Styles.globalStyles.mediumWidth},
}),
buttonBox: Styles.padding(0, Styles.globalMargins.small, Styles.globalMargins.tiny),
desktopScrollview: {
width: '100%',
Expand Down

0 comments on commit 494bbc1

Please sign in to comment.