-
Notifications
You must be signed in to change notification settings - Fork 15
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
fix: User avatar shrinks on mobile when action is submitting #2559
Conversation
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.
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.
Looking brill @Nortsova ✨
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.
Congratulations on your first PR @Nortsova 🎉
The fix does indeed solve the issue:
Screen.Recording.2024-06-18.at.17.12.35.mov
However, I think this change is unnecessary and is affecting a different part of the header:
And flex
is already included in the button component and doesn't need to be included again here:
Nice job identifying the components involved and making the fix though! I'll review again after these changes.
@@ -151,7 +151,7 @@ const UserHubButton: FC = () => { | |||
{ | |||
'!border-blue-400': visible || isUserHubOpen, | |||
}, | |||
'md:hover:!border-blue-400', | |||
' flex min-w-[3rem] md:hover:!border-blue-400', |
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.
I'm being incredibly nitpicky, but there is an unnecessary space at the start of this line.
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.
I also don't think flex is needed here as it is already included in the button component.
@@ -117,7 +117,7 @@ const NavigationSidebarContent: FC<NavigationSidebarProps> = ({ | |||
md:gap-9 | |||
`} | |||
> | |||
<div className="flex gap-6 md:flex-col md:gap-9"> | |||
<div className="flex gap-3 md:flex-col md:gap-9"> |
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.
This change affects a different part of the header.
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.
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.
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.
Description
Fix user avatar shrinks on mobile when action is submitting
Testing
Resolves #2546