Allow fix/dynamic tab width

Integrate https://github.com/MrOtherGuy/firefox-csshacks/pull/3
This commit is contained in:
Ema Panz 2019-03-21 08:41:35 +01:00 committed by GitHub
parent 8b757e951b
commit 4796f94cea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,8 +8,11 @@
/* Scrollbar can't be clicked but the rows can be scrolled with mouse */ /* Scrollbar can't be clicked but the rows can be scrolled with mouse */
/* This maximum visible rows won't work before Fx66 */ /* This maximum visible rows won't work before Fx66 */
/* So this setting does nothing on Fx65 and all tab rows will be shown */ /* So this setting does nothing on Fx65 and all tab rows will be shown */
:root{ --multirow-n-rows: 3 } :root{
:root{ --multirow-tab-min-width: 150px } --multirow-n-rows: 3;
--multirow-tab-min-width: 100px;
--multirow-tab-dynamic-width: 1; /* Change to 0 for fixed-width tabs using the above width. */
}
#tabbrowser-tabs{ #tabbrowser-tabs{
min-height: unset !important; min-height: unset !important;
@ -55,7 +58,7 @@
.tabbrowser-tab[fadein]:not([pinned]){ .tabbrowser-tab[fadein]:not([pinned]){
min-width: var(--multirow-tab-min-width) !important; min-width: var(--multirow-tab-min-width) !important;
flex-grow: 1; flex-grow: var(--multirow-tab-dynamic-width);
/* /*
Uncomment to enable full-width tabs, also makes tab dragging a tiny bit more sensible Uncomment to enable full-width tabs, also makes tab dragging a tiny bit more sensible
Don't set to none or you'll see errors in console when closing tabs Don't set to none or you'll see errors in console when closing tabs