Skip to content

Commit

Permalink
fix(uikit): display username as single line
Browse files Browse the repository at this point in the history
  • Loading branch information
bang9 committed May 30, 2022
1 parent f78a492 commit fad080b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/uikit-react-native/src/ui/UserActionBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const UserActionBar: React.FC<Props> = ({ muted, uri, name, disabled, onPressAct
<View style={styles.container}>
<Avatar muted={muted} size={36} uri={uri} containerStyle={styles.avatar} />
<View style={[styles.infoContainer, { borderBottomColor: colors.onBackground04 }]}>
<Text subtitle2 style={styles.name} color={colors.onBackground01}>
<Text subtitle2 numberOfLines={1} style={styles.name} color={colors.onBackground01}>
{name}
</Text>
{Boolean(label) && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@ const UserSelectableBar: React.FC<Props> = ({ uri, name, selected, disabled }) =
<View style={styles.container}>
<Avatar size={36} uri={uri} containerStyle={styles.avatar} />
<View style={[styles.infoContainer, { borderBottomColor: colors.onBackground04 }]}>
<Text
subtitle2
style={styles.name}
color={colors.onBackground01}
// color={disabled ? colors.onBackground04 : colors.onBackground01}
>
<Text subtitle2 numberOfLines={1} style={styles.name} color={colors.onBackground01}>
{name}
</Text>
<Icon color={iconColor} size={24} icon={selected ? 'checkbox-on' : 'checkbox-off'} />
Expand Down

0 comments on commit fad080b

Please sign in to comment.