mirror of
https://github.com/zen-browser/desktop.git
synced 2026-05-20 03:51:20 +00:00
gh-7094: Fix webcontent shift when bookmark + title bar is active (gh-13483)
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
}
|
||||
|
||||
/* stylelint-disable-next-line media-query-no-invalid */
|
||||
@media (not -moz-pref("zen.view.shift-down-site-on-hover")) and (not ((-moz-pref("zen.view.experimental-no-window-controls") or (not -moz-pref("zen.view.hide-window-controls")) or (not -moz-pref("browser.tabs.inTitlebar"))) and -moz-pref("zen.view.use-single-toolbar"))) {
|
||||
@media (not -moz-pref("zen.view.shift-down-site-on-hover")) {
|
||||
.browserSidebarContainer:is(.deck-selected, [zen-split="true"]) .browserContainer {
|
||||
transition: margin var(--zen-hidden-toolbar-transition);
|
||||
|
||||
@@ -59,6 +59,12 @@
|
||||
--margin-top-fix: calc(-1 * var(--zen-toolbar-height-with-bookmarks) + var(--zen-element-separation));
|
||||
}
|
||||
|
||||
@media -moz-pref("zen.view.experimental-no-window-controls") or (not -moz-pref("zen.view.hide-window-controls")) or (not -moz-pref("browser.tabs.inTitlebar")) {
|
||||
:root:not([zen-has-bookmarks="true"])[zen-single-toolbar="true"] & {
|
||||
--margin-top-fix: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
margin-top: var(--margin-top-fix);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user