From dac63f51a7d6962fa58af22baed0d67b915b11cc Mon Sep 17 00:00:00 2001 From: catruge <49883288+catruge@users.noreply.github.com> Date: Sat, 20 Feb 2021 15:23:52 -0500 Subject: [PATCH] Private browsing indicator prevents tab bar from collapsing (#89) * Hide private browsing indicator * Add note to user --- chrome/hide_tabs_with_one_tab.css | 10 ++++++++-- chrome/hide_tabs_with_one_tab_w_window_controls.css | 9 ++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/chrome/hide_tabs_with_one_tab.css b/chrome/hide_tabs_with_one_tab.css index 079aad1..501c395 100644 --- a/chrome/hide_tabs_with_one_tab.css +++ b/chrome/hide_tabs_with_one_tab.css @@ -1,7 +1,7 @@ /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_tabs_with_one_tab.css made available under Mozilla Public License v. 2.0 See the above repository for updates as well as full license text. */ -/* Makes tabs toolbar items zero-height initially and sets enlarge them to fill up space equal to tab-min-height set on tabs */ +/* Makes tabs toolbar items zero-height initially and sets enlarge them to fill up space equal to tab-min-height set on tabs. Optionally use privatemode_indicator_as_menu_button.css to replace main menu icon with private browsing indicator while tabs are hidden. */ /* Firefox 65+ only */ :root[sizemode="normal"] #nav-bar{ --uc-window-drag-space-width: 20px } @@ -23,6 +23,12 @@ See the above repository for updates as well as full license text. */ margin: 0 !important; } +.accessibility-indicator, +.private-browsing-indicator{ + height: unset !important; +} +.accessibility-indicator > hbox{ padding-block: 0 !important } + #tabbrowser-tabs .tabbrowser-tab{ height: var(--tab-min-height) } #tabbrowser-tabs .tabbrowser-tab[first-visible-tab="true"][last-visible-tab="true"]{ @@ -49,4 +55,4 @@ See the above repository for updates as well as full license text. */ } #nav-bar{ border-inline: var(--uc-window-drag-space-width) solid var(--toolbar-bgcolor); -} \ No newline at end of file +} 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 5c0c6c7..cb01d65 100644 --- a/chrome/hide_tabs_with_one_tab_w_window_controls.css +++ b/chrome/hide_tabs_with_one_tab_w_window_controls.css @@ -1,7 +1,7 @@ /* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_tabs_with_one_tab_w_window_controls.css made available under Mozilla Public License v. 2.0 See the above repository for updates as well as full license text. */ -/* Makes tabs toolbar items zero-height initially and sets enlarge them to fill up space equal to tab-min-height set on tabs */ +/* Makes tabs toolbar items zero-height initially and sets enlarge them to fill up space equal to tab-min-height set on tabs. Optionally use privatemode_indicator_as_menu_button.css to replace main menu icon with private browsing indicator while tabs are hidden. */ /* Firefox 65+ only */ /* !!USER!! - REMOVE ALL BUTTONS you can from the tabs toolbar */ @@ -28,6 +28,13 @@ Window controls will be all wrong without it -moz-box-align: stretch; margin: 0 !important; } + +.accessibility-indicator, +.private-browsing-indicator{ + height: unset !important; +} +.accessibility-indicator > hbox{ padding-block: 0 !important } + #tabbrowser-tabs .tabbrowser-tab{ height: var(--tab-min-height) } #tabbrowser-tabs .tabbrowser-tab[first-visible-tab="true"][last-visible-tab="true"]{ visibility: collapse;