From 4a263d029a8f9fe188ee437b653f8b2a12991116 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 17 Apr 2022 15:44:57 +0300 Subject: [PATCH] add few multi-row_tabs compatibility rules Empty tabs toolbar won't collapse otherwise because of how flexbox treats visibility:collapse --- chrome/hide_tabs_with_one_tab.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chrome/hide_tabs_with_one_tab.css b/chrome/hide_tabs_with_one_tab.css index 1b1a30b..b6b07f8 100644 --- a/chrome/hide_tabs_with_one_tab.css +++ b/chrome/hide_tabs_with_one_tab.css @@ -9,7 +9,9 @@ See the above repository for updates as well as full license text. */ #titlebar{ -moz-appearance: none !important; } #TabsToolbar{ min-height: 0px !important } -#tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox, #tabbrowser-arrowscrollbox{ min-height: 0 !important; } +#tabbrowser-tabs, +#tabbrowser-tabs > .tabbrowser-arrowscrollbox, +#tabbrowser-arrowscrollbox{ min-height: 0 !important; } :root:not([customizing]) #tabbrowser-tabs .tabs-newtab-button, :root:not([customizing]) #tabs-newtab-button, @@ -35,6 +37,9 @@ See the above repository for updates as well as full license text. */ .tabbrowser-tab[first-visible-tab="true"][last-visible-tab="true"]{ visibility: collapse !important; + /* These seem unnecessary, but they achieve compatibility with hide_tabs_with_one_tab.css */ + min-height: 0 !important; + height: 0; } /* Button re-styling */