Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/zen/compact-mode/ZenCompactMode.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,17 @@ window.gZenCompactModeManager = {
return;
}
}
// Don't set hover on toolbar when left sidebar + no bookmarks
// (prevents navbar from revealing when it shouldn't)
if (
isToolbar &&
attr === 'zen-has-hover' &&
!document.documentElement.hasAttribute('zen-right-side') &&
!document.documentElement.hasAttribute('zen-has-bookmarks') &&
!element.hasAttribute('should-hide')
) {
return;
}
element.setAttribute(attr, 'true');
if (
isToolbar &&
Expand Down
6 changes: 4 additions & 2 deletions src/zen/tabs/zen-tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@

/* Include styles for the top bar under certain conditions:
* - Bookmarks toolbar is visible OR
* - The container is explicitly marked to hide controls (e.g., on Linux with reversed controls)
* - The container is explicitly marked to hide controls (e.g., on Linux with reversed controls) OR
* - Sidebar is on the left (to prevent flash when toggling bookmarks)
*/
:root[zen-has-bookmarks] &,
&[should-hide='true'] {
&[should-hide='true'],
:root:not([zen-right-side='true']) & {
%include zen-tabs/vertical-tabs-topbar.inc.css
}

Expand Down