From d21e127bd7c05d8ed89b8776260b1d01ce84dca3 Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Mon, 20 Oct 2025 12:35:49 +0200 Subject: [PATCH] feat: Make the top buttons smaller in height, b=no-bug, c=tabs --- .../components/customizableui/CustomizableUI-sys-mjs.patch | 4 ++-- src/zen/tabs/zen-tabs/vertical-tabs.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/browser/components/customizableui/CustomizableUI-sys-mjs.patch b/src/browser/components/customizableui/CustomizableUI-sys-mjs.patch index be5a545f9..e3a48d688 100644 --- a/src/browser/components/customizableui/CustomizableUI-sys-mjs.patch +++ b/src/browser/components/customizableui/CustomizableUI-sys-mjs.patch @@ -1,5 +1,5 @@ diff --git a/browser/components/customizableui/CustomizableUI.sys.mjs b/browser/components/customizableui/CustomizableUI.sys.mjs -index d9a059f608779fea7cd8c595a432f6fe95183e0c..09a7c4045afd0b96027d0bbbad22e02e52fd7b22 100644 +index d9a059f608779fea7cd8c595a432f6fe95183e0c..31c43bc3d5b05713299c1b822b9774909445e862 100644 --- a/browser/components/customizableui/CustomizableUI.sys.mjs +++ b/browser/components/customizableui/CustomizableUI.sys.mjs @@ -14,6 +14,7 @@ ChromeUtils.defineESModuleGetters(lazy, { @@ -158,7 +158,7 @@ index d9a059f608779fea7cd8c595a432f6fe95183e0c..09a7c4045afd0b96027d0bbbad22e02e continue; } - sum += parseFloat(style.marginLeft) + parseFloat(style.marginRight); -+ sum += parseFloat(style.marginLeft) + Math.max(0, parseFloat(style.marginRight)); ++ sum += parseFloat(style.marginLeft) + (win.gZenVerticalTabsManager._hasSetSingleToolbar ? Math.max(0, parseFloat(style.marginRight)) : parseFloat(style.marginRight)); if (child != aExceptChild) { sum += getInlineSize(child); } diff --git a/src/zen/tabs/zen-tabs/vertical-tabs.css b/src/zen/tabs/zen-tabs/vertical-tabs.css index 9d26c940f..7b97ab7ac 100644 --- a/src/zen/tabs/zen-tabs/vertical-tabs.css +++ b/src/zen/tabs/zen-tabs/vertical-tabs.css @@ -963,7 +963,7 @@ :root[zen-single-toolbar='true'] & { --zen-toolbar-height: 36px; @media (-moz-platform: macos) { - --zen-toolbar-height: 42px; + --zen-toolbar-height: 38px; } & #PanelUI-button {