Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated placement of the user status icon #34795

Merged
18 changes: 8 additions & 10 deletions src/pages/home/sidebar/AvatarWithOptionalStatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,22 @@ function AvatarWithOptionalStatus({emojiStatus, isCreateMenuOpen}) {

return (
<View style={styles.sidebarStatusAvatarContainer}>
<PressableAvatarWithIndicator isCreateMenuOpen={isCreateMenuOpen} />
<PressableWithoutFeedback
accessibilityLabel={translate('sidebarScreen.buttonMySettings')}
role={CONST.ROLE.BUTTON}
onPress={showStatusPage}
style={styles.flex1}
style={[styles.sidebarStatusAvatar]}
>
<Tooltip text={translate('statusPage.status')}>
<View style={styles.sidebarStatusAvatar}>
<Text
style={styles.emojiStatusLHN}
numberOfLines={1}
>
{emojiStatus}
</Text>
</View>
<Text
style={styles.emojiStatusLHN}
numberOfLines={1}
>
{emojiStatus}
</Text>
</Tooltip>
</PressableWithoutFeedback>
<PressableAvatarWithIndicator isCreateMenuOpen={isCreateMenuOpen} />
</View>
);
}
Expand Down
26 changes: 15 additions & 11 deletions src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3916,26 +3916,30 @@ const styles = (theme: ThemeColors) =>
},

emojiStatusLHN: {
fontSize: 22,
fontSize: 9,
},

sidebarStatusAvatarContainer: {
height: 44,
width: 84,
height: 40,
width: 40,
backgroundColor: theme.componentBG,
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
borderRadius: 42,
paddingHorizontal: 2,
marginVertical: -2,
marginRight: -2,
justifyContent: 'center',
borderRadius: 20,
},
sidebarStatusAvatar: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: theme.border,
height: 20,
width: 20,
borderRadius: 10,
position: 'absolute',
right: -4,
bottom: -4,
borderColor: theme.highlightBG,
borderWidth: 2,
},

moneyRequestViewImage: {
...spacing.mh5,
...spacing.mv3,
Expand Down
Loading