From e31e18b3f38db79a8c4244cdf6cbdd858f394f8a Mon Sep 17 00:00:00 2001 From: "mr. M" Date: Mon, 16 Dec 2024 23:04:23 +0100 Subject: [PATCH] Fixed weird spacing with top buttons on collapsed mode and fixed not being able to access top buttons also in collapsed mode --- .../content/zen-styles/zen-tabs/vertical-tabs.css | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/browser/base/content/zen-styles/zen-tabs/vertical-tabs.css b/src/browser/base/content/zen-styles/zen-tabs/vertical-tabs.css index d6fdc64af..b9991076b 100644 --- a/src/browser/base/content/zen-styles/zen-tabs/vertical-tabs.css +++ b/src/browser/base/content/zen-styles/zen-tabs/vertical-tabs.css @@ -553,6 +553,13 @@ :root[customizing] & #zen-sidebar-icons-wrapper { min-width: unset !important; } + #zen-sidebar-top-buttons:has(#zen-sidebar-top-buttons-customization-target:empty) { + max-height: 0 !important; + min-height: 0 !important; + opacity: 0; + overflow: hidden; + pointer-events: none; + } & #zen-sidebar-top-buttons { justify-content: center; max-height: unset !important; @@ -939,7 +946,7 @@ @media not (-moz-bool-pref: 'zen.view.compact') { :root[zen-right-side='true']:not([zen-sidebar-expanded='true']):not([zen-window-buttons-reversed='true']) { & #navigator-toolbox { - padding-top: var(--zen-toolbar-height); + margin-top: var(--zen-toolbar-height) !important; } & .titlebar-buttonbox-container { @@ -961,7 +968,7 @@ :root:not([zen-right-side='true']):not([zen-sidebar-expanded='true'])[zen-window-buttons-reversed='true'] { & #navigator-toolbox { - padding-top: var(--zen-toolbar-height); + margin-top: var(--zen-toolbar-height) !important; } & .titlebar-buttonbox-container {