From 9d081f27b56f2c91d0ef2d9c5736bc206065a732 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 23 Oct 2022 18:06:02 +0300 Subject: [PATCH] Make hide_tabs_with_one_tab_w_window... compatible with tabs_on_bottom --- chrome/hide_tabs_with_one_tab_w_window_controls.css | 6 +++--- chrome/tabs_on_bottom.css | 1 + 2 files changed, 4 insertions(+), 3 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 75f1564..0638888 100644 --- a/chrome/hide_tabs_with_one_tab_w_window_controls.css +++ b/chrome/hide_tabs_with_one_tab_w_window_controls.css @@ -16,7 +16,7 @@ Window controls will be all wrong without it */ :root{ - --uc-menubar-height: 28px; /* adjust as necessary */ + --uc-menubar-vertical-overlap: 28px; /* adjust as necessary */ } #titlebar{ -moz-appearance: none !important; } /* We'll use window controls from menubar instead */ @@ -75,10 +75,10 @@ Window controls will be all wrong without it } /* Window controls in nav-bar */ -:root:not([customizing]) #toolbar-menubar[inactive]{ +:root[tabsintitlebar]:not([customizing]) #toolbar-menubar[inactive]{ height: initial !important; min-height: initial !important; - margin-bottom: calc(0px - var(--uc-menubar-height,28px)) !important; + margin-bottom: calc(0px - var(--uc-menubar-vertical-overlap,0px)) !important; } :root:not([customizing]) #toolbar-menubar[autohide][inactive] > #menubar-items{ pointer-events: none; opacity: 0 } diff --git a/chrome/tabs_on_bottom.css b/chrome/tabs_on_bottom.css index cf3ac30..11da065 100644 --- a/chrome/tabs_on_bottom.css +++ b/chrome/tabs_on_bottom.css @@ -38,6 +38,7 @@ linux_gtk_window_control_patch.css -moz-box-ordinal-group: 2; -moz-appearance: none !important; --tabs-navbar-shadow-size: 0px; + --uc-menubar-vertical-overlap: 19px; /* for hide_tabs_with_one_tab_w_window_controls.css compatibility */ } /* Re-order window and tab notification boxes */ #navigator-toolbox > div{ display: contents }