From f87fcdf68c43b960afaea1557ba7fcf9ea43e80f Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Tue, 16 Sep 2025 05:59:34 +0300 Subject: [PATCH] Handle both [collapsed="true"] and [collpsed=""] attributes Firefox 143 use collapsed attribute as regular boolean attribute, so we need to handle both cases. --- chrome/autohide_bookmarks_and_main_toolbars.css | 4 ++-- chrome/autohide_toolbox.css | 2 +- chrome/bookmarks_below_content.css | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chrome/autohide_bookmarks_and_main_toolbars.css b/chrome/autohide_bookmarks_and_main_toolbars.css index 705cc71..ea5c4a3 100644 --- a/chrome/autohide_bookmarks_and_main_toolbars.css +++ b/chrome/autohide_bookmarks_and_main_toolbars.css @@ -95,12 +95,12 @@ See the above repository for updates as well as full license text. */ /* Make sure the bookmarks toolbar is never collapsed even if it is disabled */ :root[sizemode="fullscreen"] #PersonalToolbar, -#PersonalToolbar[collapsed="true"]{ +#PersonalToolbar:is([collapsed=""],[collapsed="true"]){ min-height: initial !important; max-height: initial !important; visibility: hidden !important } -#PersonalToolbar[collapsed="true"] #PlacesToolbarItems > *, +#PersonalToolbar:is([collapsed=""],[collapsed="true"]) #PlacesToolbarItems > *, :root[sizemode="fullscreen"] #PersonalToolbar #PlacesToolbarItems > *{ visibility: hidden !important; } diff --git a/chrome/autohide_toolbox.css b/chrome/autohide_toolbox.css index 701982b..f4adcd1 100644 --- a/chrome/autohide_toolbox.css +++ b/chrome/autohide_toolbox.css @@ -84,7 +84,7 @@ See the above repository for updates as well as full license text. */ } #navigator-toolbox[inFullscreen] > #PersonalToolbar, -#PersonalToolbar[collapsed="true"]{ display: none } +#PersonalToolbar:is([collapsed=""],[collapsed="true"]){ display: none } /* This is a bit hacky fix for an issue that will make urlbar zero pixels tall after you enter customize mode */ #urlbar[breakout][breakout-extend] > .urlbar-input-container{ diff --git a/chrome/bookmarks_below_content.css b/chrome/bookmarks_below_content.css index 2b1c3c7..8c92394 100644 --- a/chrome/bookmarks_below_content.css +++ b/chrome/bookmarks_below_content.css @@ -12,7 +12,7 @@ See the above repository for updates as well as full license text. */ margin-bottom: var(--uc-bm-toolbar-height,0); border-bottom: 1px solid var(--chrome-content-separator-color,light-dark(rgb(204, 204, 204), hsl(240, 5%, 5%))) } - #navigator-toolbox:has(> #PersonalToolbar[collapsed="true"]) + #browser{ + #navigator-toolbox:has(> #PersonalToolbar:is([collapsed=""],[collapsed="true"])) + #browser{ margin-bottom: 0; border-bottom: none; }