Skip to content

Conversation

npinochet
Copy link

@npinochet npinochet commented Aug 13, 2025

Shift nav bar down when accessing it on macOS while in fullscreen, allowing it to be shown when the macOS top bar appears.
I tried to keep this PR simple, but the nav bar kept auto hiding when the macOS top bar appears making it difficult to access. The changes made in ZenCompactMode.mjs fixes that.

Fixes #8757

EDIT: This is how it currently works
https://github.com/user-attachments/assets/5ad31673-366a-4c65-b6ba-2d2b2a2036ff

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. Bug labels Aug 13, 2025
+ // : "";
+ const padding = shiftSize > 0 ? `${shiftSize}px` : "";
+ const appContentNavbarWrapper = document.getElementById('zen-appcontent-navbar-wrapper');
+ appContentNavbarWrapper.style.paddingTop = gURLBar.textbox.hasAttribute("breakout")
Copy link
Contributor

Choose a reason for hiding this comment

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

Shoudnt we check if it's double toolbar as well?

Copy link
Author

Choose a reason for hiding this comment

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

Good point, I didn't consider that case, I'll do some tests and try to add it

Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if instead of this fullscreen we can just not hide it at all, like what chromium browsers do.

Copy link
Author

Choose a reason for hiding this comment

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

You mean like not showing the macOS title bar that shifts down at all? That could work, the window minimize, maximize and close buttons would be lost and should be moved to the toolbar though.
As it is, this fix takes the same solution that firefox did, but I agree the chromium way is more simple. I'll try experimenting to see if I can replicate it.

@mr-cheffy mr-cheffy self-requested a review August 14, 2025 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Macos fullscreen doesn't allow to access the content at the top
2 participants