fix(nav-bar): adjust overflow and visibility of buttons in navigator toolbox#153
fix(nav-bar): adjust overflow and visibility of buttons in navigator toolbox#153ozanyetkin wants to merge 2 commits intocascadefox:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adjusts the responsive “oneline” navigator toolbox layout to prevent nav-bar content overflow and conditionally hide specific toolbar buttons when the toolbox isn’t active.
Changes:
- Adds
overflow: hiddento#nav-barin the ≥1000px responsive layout. - Hides
#unified-extensions-buttonand#sidebar-buttonwhen#navigator-toolboxis not:focus-within.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| #navigator-toolbox:not(:focus-within) #unified-extensions-button, | ||
| #navigator-toolbox:not(:focus-within) #sidebar-button { | ||
| display: none !important; | ||
| } |
There was a problem hiding this comment.
Introduces a container query to adjust toolbar styles based on the maximum width. Hides specific buttons and removes borders, shadows, and padding for a cleaner UI in constrained layouts. Enhances responsiveness and visual consistency.
| } | ||
|
|
||
| @container (max-width: 1px) { | ||
| #nav-bar { |
There was a problem hiding this comment.
They apply styling to the navigation bar when the container width is 1px or less.
I have tried some methods to hide the squashed URL bar completely, but it prevents the URL bar from appearing when "Ctrl/Cmd + L" is used, making it non-functional. Not sure what can be done to hide the squashed URL bar without breaking its functionality.
I'll keep you posted if I find a workaround that maintains full functionality.


Fixes #148