-
Notifications
You must be signed in to change notification settings - Fork 195
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
refactor: Navbar: constrain max width to same width as the content. #1855
Conversation
Reason: on desktop the navigation items in the top left and right corners were easy to miss. With this change, everything is closer together and easier to notice.
🚀 Thanks for the pull request! Here are the current build files for testing: Download and unzip the file for your browser. Refer to the readme for detailed install instructions. This build is brought to you by:
Want to sponsor the next build? send some sats to ⚡️builds@getalby.com (don't forget to provide your name) Don't forget: keep earning sats! |
+ remove superfluous <div>.
+ let `.justify-between` do the work and don't define widths on the dropdown and hamburger menus. + add `.lg:-ml-2` to `children` since proper centering looks a bit too much on the left (it's a human issue :).
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.
@@ -7,16 +7,10 @@ type Props = { | |||
|
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.
Best reviewed in "split mode". I actually added a new wrapper div
to constrain the content's width.
Since I also removed wrapper div
s from <AccountMenu>
, children
and UserMenu
it's a bit hard to see the changes in other views.
yes, there is a weird space of about 100px display resolution around 1024px where the wallet icon has space on the left and is not flush with the content's left border. in the same space the negative margin on the |
hm, just checked again and it feels like i don't get the |
looks the same as in Firefox for me on Chrome. |
Related Rails app PR
HELP NEEDED / TODOs
Describe the changes you have made in this PR
Type of change
Screenshots of the changes [optional]
Before
After
How has this been tested?
⚠️ I only tested this with my browser's inspector. I don't have a development setup for the extension yet.Ok, I have the development setup for the extension now and everything looked good to me.