From f13a9a260ec020a67c50e031ac99c5f6d1ac8fbd Mon Sep 17 00:00:00 2001 From: "mr. M" Date: Tue, 10 Dec 2024 19:51:50 +0100 Subject: [PATCH] Fixed overlaping top toolbar in compact mode when having multiple toolbars --- src/browser/base/content/zen-styles/zen-compact-mode.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/browser/base/content/zen-styles/zen-compact-mode.css b/src/browser/base/content/zen-styles/zen-compact-mode.css index 8aebef5c6..9b3c017f3 100644 --- a/src/browser/base/content/zen-styles/zen-compact-mode.css +++ b/src/browser/base/content/zen-styles/zen-compact-mode.css @@ -42,6 +42,15 @@ } } + /* When we have multiple toolbars and the top-toolbar is NOT being hidden, + * we need to adjust the top-padding of the toolbox to account for the + * extra toolbar height. */ + @media not (-moz-bool-pref: 'zen.view.compact.hide-toolbar') { + &:not([zen-single-toolbar='true']) #navigator-toolbox { + margin-top: var(--zen-toolbar-height) !important; + } + } + &[zen-right-side='true'] { & #navigator-toolbox { --zen-compact-float: calc(var(--zen-element-separation) + 1px);