From a190ad9985adf71bfebe575e48775ad968221e0a Mon Sep 17 00:00:00 2001 From: Glandos Date: Mon, 22 Jan 2018 13:34:25 +0100 Subject: [PATCH] Shrink toolbar buttons in tab bar If some buttons are present in tab bar (e.g. extensions icons), then they enlarge the bar height. This should shrink them to fit. --- tabs/more-compact-tabs.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tabs/more-compact-tabs.css b/tabs/more-compact-tabs.css index f253a7b..cd50ead 100644 --- a/tabs/more-compact-tabs.css +++ b/tabs/more-compact-tabs.css @@ -18,3 +18,14 @@ margin: var(--newtab-margin) !important; } +[uidensity="compact"]:root #TabsToolbar > .toolbarbutton-1 { + margin-bottom: 0 !important; + max-height: var(--tab-min-height) !important; + +} + +[uidensity="compact"]:root #TabsToolbar > .toolbarbutton-1 > .toolbarbutton-badge-stack, +[uidensity="compact"]:root #TabsToolbar > .toolbarbutton-1 .toolbarbutton-icon{ + padding-top: 1px !important; + padding-bottom: 1px !important; +}