Skip to content

Commit 4f3ac16

Browse files
committed
autohide bm and main toolbars: Fix margins in fullscreen mode
Previously if Firefox was in fullscreen mode and toolbars would autohide (per Firefox normal setting) then this style would cause content area to be pushed way too far up because of computed margin-top on navigator-toolbox. This patch makes navigator toolbox use margin computed from tabs toolbar height.
1 parent f96fb47 commit 4f3ac16

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

chrome/autohide_bookmarks_and_main_toolbars.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,11 @@ See the above repository for updates as well as full license text. */
9595
margin-bottom: calc(-1px - var(--uc-bm-height) + var(--uc-navbar-height)) !important;
9696
z-index: auto !important;
9797
}
98-
98+
@media (-moz-bool-pref: "browser.fullscreen.autohide"){
99+
:root[sizemode="fullscreen"] #navigator-toolbox[style*="margin-top"]{
100+
margin-top: calc(1px - var(--tab-min-height) - 2 * var(--tab-block-margin)) !important;
101+
}
102+
}
99103
/* Uncomment the next part to enable compatibility for multi-row_bookmarks.css
100104
* This would break buttons placed in the toolbar,
101105
* but that is likely not happening if you are using multi-row setup

0 commit comments

Comments
 (0)