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
Member

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
Member

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.

Copy link
Member

Choose a reason for hiding this comment

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

Has this check been done? Im not sure where that is

@karimboubouh
Copy link

Can you please merge this, its painful to work with Zen on full screen on compact mode.

Copy link
Member

@mr-cheffy mr-cheffy left a comment

Choose a reason for hiding this comment

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

@npinochet could you please resolve git conflicts so it can get merged into twilight?

@npinochet
Copy link
Author

npinochet commented Oct 23, 2025

Later today Tomorrow I'll resolve the merge conflicts. I still believe the way chrome/safari handles fullscreen is a better solution, I tried making it work, but my lack of Objective C skills and compile times made me give up.

@npinochet npinochet force-pushed the dev branch 2 times, most recently from d480a11 to 6111cf1 Compare October 24, 2025 17:12
@mr-cheffy mr-cheffy self-requested a review October 24, 2025 20:44
@karimboubouh
Copy link

Any issues still in this PR ?

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

3 participants