adjustments for bookmarks toolbar item sizing

This fixes an issue with Firefox 108 where an empty "placeholder" space
would appear below tabs toolbar.
This commit is contained in:
MrOtherGuy 2022-12-14 09:16:30 +02:00
parent 4918f31c82
commit 0c0ba80f0b
2 changed files with 3 additions and 15 deletions

View file

@ -9,7 +9,6 @@ See the above repository for updates as well as full license text. */
} }
:root[uidensity="compact"] #navigator-toolbox{ :root[uidensity="compact"] #navigator-toolbox{
--uc-bm-padding: 1px;
--uc-navbar-height: -34px; --uc-navbar-height: -34px;
} }
:root[uidensity="touch"] #navigator-toolbox{ --uc-bm-padding: 6px } :root[uidensity="touch"] #navigator-toolbox{ --uc-bm-padding: 6px }
@ -44,17 +43,7 @@ See the above repository for updates as well as full license text. */
} }
:root[sessionrestored]:not([customizing]) #navigator-toolbox{ :root[sessionrestored]:not([customizing]) #navigator-toolbox{
margin-bottom: calc(0px - var(--uc-bm-height) + var(--uc-navbar-height)); margin-bottom: calc(-1px - var(--uc-bm-height) + var(--uc-navbar-height));
}
#PlacesToolbarItems > .bookmark-item {
min-height: calc(var(--uc-bm-height) - 4px); /* Bookmarks have 2px block margin */
padding-block: 0px !important;
}
#OtherBookmarks,
#PlacesChevron,
#PersonalToolbar > #import-button{
padding-block: var(--uc-bm-padding) !important;
} }
/* Make sure the bookmarks toolbar is never collapsed even if it is disabled */ /* Make sure the bookmarks toolbar is never collapsed even if it is disabled */

View file

@ -3,7 +3,7 @@ See the above repository for updates as well as full license text. */
#PersonalToolbar{ #PersonalToolbar{
--uc-bm-height: 20px; /* Might need to adjust if the toolbar has other buttons */ --uc-bm-height: 20px; /* Might need to adjust if the toolbar has other buttons */
--uc-bm-padding: 7px; /* Vertical padding to be applied to bookmarks */ --uc-bm-padding: 4px; /* Vertical padding to be applied to bookmarks */
--uc-autohide-toolbar-delay: 600ms; /* The toolbar is hidden after 0.6s */ --uc-autohide-toolbar-delay: 600ms; /* The toolbar is hidden after 0.6s */
/* 0deg = "show" ; 90deg = "hide" ; Set the following to control when bookmarks are shown */ /* 0deg = "show" ; 90deg = "hide" ; Set the following to control when bookmarks are shown */
@ -11,12 +11,11 @@ See the above repository for updates as well as full license text. */
--uc-autohide-toolbar-hover-rotation: 0deg; /* cursor is over the toolbar area */ --uc-autohide-toolbar-hover-rotation: 0deg; /* cursor is over the toolbar area */
} }
:root[uidensity="compact"] #PersonalToolbar{ --uc-bm-padding: 1px; }
:root[uidensity="touch"] #PersonalToolbar{ --uc-bm-padding: 7px } :root[uidensity="touch"] #PersonalToolbar{ --uc-bm-padding: 7px }
#PersonalToolbar:not([customizing]){ #PersonalToolbar:not([customizing]){
position: relative; position: relative;
margin-bottom: calc(0px - var(--uc-bm-height) - 2 * var(--uc-bm-padding)); margin-bottom: calc(-1px - var(--uc-bm-height) - 2 * var(--uc-bm-padding));
transform: rotateX(90deg); transform: rotateX(90deg);
transform-origin: top; transform-origin: top;
transition: transform 135ms linear var(--uc-autohide-toolbar-delay) !important; transition: transform 135ms linear var(--uc-autohide-toolbar-delay) !important;