From 0c81924f74dfb83a3442bd366e067861d520572e Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 17 Apr 2022 15:54:07 +0300 Subject: [PATCH] add few compatibility rules for multi-row_tabs --- .../hide_tabs_with_one_tab_w_window_controls.css | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/chrome/hide_tabs_with_one_tab_w_window_controls.css b/chrome/hide_tabs_with_one_tab_w_window_controls.css index 0dac8c9..b62d16b 100644 --- a/chrome/hide_tabs_with_one_tab_w_window_controls.css +++ b/chrome/hide_tabs_with_one_tab_w_window_controls.css @@ -19,7 +19,9 @@ Window controls will be all wrong without it #tabbrowser-tabs > .tabbrowser-arrowscrollbox, #tabbrowser-arrowscrollbox{ min-height: 0 !important; } -#TabsToolbar > .titlebar-spacer[type="post-tabs"]{ width: calc(var(--uc-window-control-width,0px) + var(--uc-window-drag-space-post,0px)) !important; } +#TabsToolbar > .titlebar-spacer[type="post-tabs"]{ + width: calc(var(--uc-window-control-width,0px) + var(--uc-window-drag-space-post,0px)) !important; +} #toolbar-menubar > spacer{ pointer-events: none } :root:not([customizing]) #tabs-newtab-button, @@ -39,9 +41,14 @@ Window controls will be all wrong without it } .accessibility-indicator > hbox{ padding-block: 0 !important } -#tabbrowser-tabs .tabbrowser-tab{ height: calc(var(--tab-min-height) + 2 * var(--tab-block-margin)) } -#tabbrowser-tabs .tabbrowser-tab[first-visible-tab="true"][last-visible-tab="true"]{ +.tabbrowser-tab{ + height: calc(var(--tab-min-height) + 2 * var(--tab-block-margin)); +} +.tabbrowser-tab[first-visible-tab="true"][last-visible-tab="true"]{ visibility: collapse; + /* These seem unnecessary, but they achieve compatibility with hide_tabs_with_one_tab.css */ + min-height: 0 !important; + height: 0; } /* Button re-styling */ @@ -72,4 +79,4 @@ Window controls will be all wrong without it :root:not([customizing]) #toolbar-menubar[autohide][inactive] > #menubar-items{ pointer-events: none; opacity: 0 } :root[sizemode="fullscreen"] #TabsToolbar > #window-controls{ z-index: 2; } -.titlebar-buttonbox{ color: inherit } \ No newline at end of file +.titlebar-buttonbox{ color: inherit }