-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: Shift navbar down when accesing it on macOS in fullscreen (#8757) #9865
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
base: dev
Are you sure you want to change the base?
Conversation
| + // : ""; | ||
| + const padding = shiftSize > 0 ? `${shiftSize}px` : ""; | ||
| + const appContentNavbarWrapper = document.getElementById('zen-appcontent-navbar-wrapper'); | ||
| + appContentNavbarWrapper.style.paddingTop = gURLBar.textbox.hasAttribute("breakout") |
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.
Shoudnt we check if it's double toolbar as well?
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.
Good point, I didn't consider that case, I'll do some tests and try to add it
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.
I wonder if instead of this fullscreen we can just not hide it at all, like what chromium browsers do.
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.
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.
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.
Has this check been done? Im not sure where that is
|
Can you please merge this, its painful to work with Zen on full screen on compact mode. |
mr-cheffy
left a comment
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.
@npinochet could you please resolve git conflicts so it can get merged into twilight?
|
|
d480a11 to
6111cf1
Compare
|
Any issues still in this PR ? |
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.mjsfixes that.Fixes #8757
EDIT: This is how it currently works
https://github.com/user-attachments/assets/5ad31673-366a-4c65-b6ba-2d2b2a2036ff