From 8aab757dda1085b29085cc6c737f8fd5fbb88c40 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 14 May 2023 10:36:41 +0300 Subject: [PATCH] oneliners: allow ulrbar-container to shrink a bit This fixes a problem where urlbar would cause items in the toolbar to overflow the whole toolbar too early --- chrome/navbar_tabs_oneliner.css | 5 ++++- chrome/navbar_tabs_oneliner_menu_buttons_on_right.css | 5 ++++- chrome/navbar_tabs_responsive_oneliner.css | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/chrome/navbar_tabs_oneliner.css b/chrome/navbar_tabs_oneliner.css index 13eae49..5e462db 100644 --- a/chrome/navbar_tabs_oneliner.css +++ b/chrome/navbar_tabs_oneliner.css @@ -32,7 +32,10 @@ urlbar_popup_full_width.css is VERY MUCH recommended for Firefox 71+ because of /* prevent urlbar overflow on narrow windows */ /* Dependent on how many items are in navigation toolbar ADJUST AS NEEDED */ @media screen and (max-width: 1500px){ - #urlbar-container{ min-width:unset !important } + #urlbar-container{ + min-width: 300px !important; + flex-shrink: 1 !important; + } } #TabsToolbar{ diff --git a/chrome/navbar_tabs_oneliner_menu_buttons_on_right.css b/chrome/navbar_tabs_oneliner_menu_buttons_on_right.css index e2acde9..656003b 100644 --- a/chrome/navbar_tabs_oneliner_menu_buttons_on_right.css +++ b/chrome/navbar_tabs_oneliner_menu_buttons_on_right.css @@ -49,7 +49,10 @@ Window controls will be all wrong without it /* prevent urlbar overflow on narrow windows */ /* Dependent on how many items are in navigation toolbar ADJUST AS NEEDED */ @media screen and (max-width: 1000px){ - #urlbar-container{ min-width:unset !important } + #urlbar-container{ + min-width: 300px !important; + flex-shrink: 1 !important; + } } #TabsToolbar{ diff --git a/chrome/navbar_tabs_responsive_oneliner.css b/chrome/navbar_tabs_responsive_oneliner.css index 8c9bed9..0bed576 100644 --- a/chrome/navbar_tabs_responsive_oneliner.css +++ b/chrome/navbar_tabs_responsive_oneliner.css @@ -31,7 +31,10 @@ See the above repository for updates as well as full license text. */ /* prevent urlbar overflow on narrow windows */ /* Dependent on how many items are in navigation toolbar ADJUST AS NEEDED */ @media screen and (max-width: 1500px){ - #urlbar-container{ min-width:unset !important } + #urlbar-container{ + min-width: 300px !important; + flex-shrink: 1 !important; + } } /* Override for other densities */