-
-
Notifications
You must be signed in to change notification settings - Fork 714
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
feat: user profile preview #7150
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
@@ -216,7 +216,7 @@ const ShowHide: FC<{ mode: 'full' | 'mini'; onChange: () => void }> = ({ | |||
display: 'flex', | |||
justifyContent: 'space-between', | |||
alignItems: 'center', | |||
margin: theme.spacing(2, 1, 0, 2), | |||
margin: theme.spacing(2, 1, 0, mode === 'mini' ? 1 : 2), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed show/hide nav layout for mini icons
aria-expanded={showProfile} | ||
onClick={() => setShowProfile((prev) => !prev)} | ||
> | ||
<StyledUserAvatar user={profile} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved from UserProfileContent to the UserProfile itself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
About the changes
Moving user profile info (name and email) from behind the avatar to the top bar. This change is not flagged since it looks good for current and new code. The new profile is modelled as a button so that keyboard navigation works fine.
Current desktop view (username and profile removed from the dropdown and added to top bar):
New desktop view (divider between icons and new profile):
Current and new mobile view (identical):
Also works with very long names and emails:
Important files
Discussion points