Skip to content

Commit

Permalink
Merge pull request Expensify#42032 from Krishna2323/krishna2323/issue…
Browse files Browse the repository at this point in the history
…/35389

fix: Status - Emoji in custom status holder is not centered.
  • Loading branch information
madmax330 authored Jun 10, 2024
2 parents 3a7cfe6 + 6454fe2 commit bb10b8b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/pages/home/sidebar/AvatarWithOptionalStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ function AvatarWithOptionalStatus({emojiStatus = '', isSelected = false}: Avatar
<View style={styles.sidebarStatusAvatarContainer}>
<ProfileAvatarWithIndicator isSelected={isSelected} />
<View style={[styles.sidebarStatusAvatar]}>
<Text
style={styles.emojiStatusLHN}
numberOfLines={1}
>
{emojiStatus}
</Text>
<View>
<Text
style={styles.emojiStatusLHN}
numberOfLines={1}
>
{emojiStatus}
</Text>
</View>
</View>
</View>
);
Expand Down
10 changes: 10 additions & 0 deletions src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4396,6 +4396,15 @@ const styles = (theme: ThemeColors) =>

emojiStatusLHN: {
fontSize: 9,
...(Browser.getBrowser() && !Browser.isMobile() && {transform: 'scale(.5)', fontSize: 22, overflow: 'visible'}),
...(Browser.getBrowser() &&
Browser.isSafari() &&
!Browser.isMobile() && {
transform: 'scale(0.7)',
fontSize: 13,
lineHeight: 15,
overflow: 'visible',
}),
},

onboardingVideoPlayer: {
Expand Down Expand Up @@ -4423,6 +4432,7 @@ const styles = (theme: ThemeColors) =>
bottom: -4,
borderColor: theme.highlightBG,
borderWidth: 2,
overflow: 'hidden',
},
moneyRequestViewImage: {
...spacing.mh5,
Expand Down

0 comments on commit bb10b8b

Please sign in to comment.