Skip to content

fix(nav-bar): adjust overflow and visibility of buttons in navigator toolbox#153

Open
ozanyetkin wants to merge 2 commits intocascadefox:mainfrom
ozanyetkin:url-min-width-fix
Open

fix(nav-bar): adjust overflow and visibility of buttons in navigator toolbox#153
ozanyetkin wants to merge 2 commits intocascadefox:mainfrom
ozanyetkin:url-min-width-fix

Conversation

@ozanyetkin
Copy link

@ozanyetkin ozanyetkin commented Feb 3, 2026

Fixes #148

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: hidden to #nav-bar in the ≥1000px responsive layout.
  • Hides #unified-extensions-button and #sidebar-button when #navigator-toolbox is not :focus-within.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@42willow 42willow self-assigned this Feb 6, 2026
#navigator-toolbox:not(:focus-within) #unified-extensions-button,
#navigator-toolbox:not(:focus-within) #sidebar-button {
display: none !important;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the pr!

unfortunately this also hides these buttons for users without min-width set to zero, would this be possible to do with media/container queries?

there are also small lines that appear when the urlbar is minimized, so ideally it should be hidden altogether when it isnt active

Image

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the feedback!

You are right, sorry for the oversight since I only tested with min-width set to zero. I have implemented it by using a container query, which should work fine now.

image

Let me know if any further changes are needed!

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 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do these lines do? the buttons are hiding properly now but it's not hiding the squashed url bar for me. thanks for your work!

Image

Copy link
Author

@ozanyetkin ozanyetkin Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Navbar icons visible behind tabs when the urlbar is fully collapsed with mouse config in FF137

2 participants