Skip to content

Commit

Permalink
[C-2364] Fix missing artist-card badges on android (#3165)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers authored Apr 5, 2023
1 parent 64ffb7f commit 3eb62fe
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions packages/mobile/src/components/card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,14 @@ const useStyles = makeStyles(({ palette, typography, spacing }) => ({
textContainer: {
paddingVertical: spacing(1)
},
primaryTextContainer: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center'
},
primaryText: {
...typography.h3,
marginBottom: 0,
color: palette.neutral,
textAlign: 'center',
// needed to keep emojis from increasing text height
Expand Down Expand Up @@ -100,15 +106,17 @@ export const Card = (props: CardProps) => {
style: [styles.cardImage, props.type === 'user' && styles.userImage]
})}
<View style={styles.textContainer}>
<Text
numberOfLines={1}
style={[styles.primaryText, stylesProp?.primaryText]}
>
{primaryText}
<View style={styles.primaryTextContainer}>
<Text
numberOfLines={1}
style={[styles.primaryText, stylesProp?.primaryText]}
>
{primaryText}
</Text>
{props.type === 'user' ? (
<UserBadges user={props.user} badgeSize={12} hideName />
) : null}
</Text>
</View>
<View style={styles.secondaryTextContainer}>
<Text
numberOfLines={1}
Expand Down

0 comments on commit 3eb62fe

Please sign in to comment.