multi-row-tabs: Use tabbrowser-tabs as the tab container

This makes tabs scrollboxes have display:contents and thus makes tabs
use tabbrowser-tabs as their parent container.

Reason being that in firefox 141 the pinned tabs are moved to separate
scrollbox which would then have it's own display block.
Fixes #551
This commit is contained in:
MrOtherGuy
2025-06-04 16:33:27 +03:00
parent a9d0818e2c
commit 96476e85ac
+16 -22
View File
@@ -16,38 +16,32 @@ See the above repository for updates as well as full license text. */
--multirow-tab-dynamic-width: 1; /* Change to 0 for fixed-width tabs using the above width. */ --multirow-tab-dynamic-width: 1; /* Change to 0 for fixed-width tabs using the above width. */
} }
#tabbrowser-tabs{ #tabbrowser-tabs[orient="horizontal"]{
min-height: unset !important; min-height: unset !important;
padding-inline-start: 0px !important padding-inline-start: 0px !important;
} --uc-scrollbutton-display-model: none;
--uc-scrollbox-display-model: contents;
@-moz-document url(chrome://browser/content/browser.xhtml){
#scrollbutton-up~spacer,
#scrollbutton-up,
#scrollbutton-down{ display: var(--scrollbutton-display-model,initial) }
scrollbox[part][orient="horizontal"] > slot,
scrollbox[part][orient="horizontal"]{
display: flex;
flex: 1;
flex-wrap: wrap; flex-wrap: wrap;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden;
max-height: calc((var(--tab-min-height) + 2 * var(--tab-block-margin,0px)) * var(--multirow-n-rows)); max-height: calc((var(--tab-min-height) + 2 * var(--tab-block-margin,0px)) * var(--multirow-n-rows));
scrollbar-color: currentColor transparent; scrollbar-color: currentColor transparent;
scrollbar-width: thin; scrollbar-width: thin;
scrollbar-gutter: stable; scrollbar-gutter: stable;
scroll-snap-type: y mandatory; scroll-snap-type: y mandatory;
}
scrollbox[part][orient="horizontal"] > slot{
overflow-x: hidden;
}
} }
.scrollbox-clip[orient="horizontal"], @-moz-document url(chrome://browser/content/browser.xhtml){
#tabbrowser-arrowscrollbox{ #scrollbutton-up~spacer,
overflow: -moz-hidden-unscrollable; #scrollbutton-up,
display: inline; #scrollbutton-down{ display: var(--uc-scrollbutton-display-model,initial) }
--scrollbutton-display-model: none;
#pinned-tabs-container[orient="horizontal"],
#tabbrowser-arrowscrollbox[orient="horizontal"],
scrollbox[part][orient="horizontal"] > slot,
scrollbox[part="scrollbox"][orient="horizontal"]{
display: var(--uc-scrollbox-display-model,initial) !important;
}
} }
.tabbrowser-tab{ scroll-snap-align: start; } .tabbrowser-tab{ scroll-snap-align: start; }