Add: Tabbar - Fill width #458

This commit is contained in:
alstjr7375 2022-09-04 20:42:04 +09:00
parent b435705098
commit 4beeab67e2
3 changed files with 14 additions and 0 deletions

View file

@ -5989,6 +5989,14 @@
}
}
}
/*= Tab Bar - Show only current tab ==========================================*/
@supports -moz-bool-pref("userChrome.tabbar.fill_width") {
/* Why 100vw? Tab closing requires width animation to end and "none" can't be animated */
.tabbrowser-tab[fadein]:not([style^="max-width"]) {
--tab-max-width: 100vw;
max-width: var(--tab-max-width) !important;
}
}
/** Tab UI ****************************************************************/
/*= Tab - Connect to window ==============================================*/
@supports -moz-bool-pref("userChrome.tab.connect_to_window") {

View file

@ -42,3 +42,8 @@
@include Option("userChrome.tabbar.as_titlebar") {
@import "as_titlebar";
}
/*= Tab Bar - Show only current tab ==========================================*/
@include Option("userChrome.tabbar.fill_width") {
@import "fill_width";
}

View file

@ -129,6 +129,7 @@ user_pref("userChrome.rounding.square_tab", false);
// user_pref("userChrome.urlView.always_show_page_actions", true);
// user_pref("userChrome.tabbar.as_titlebar", true);
// user_pref("userChrome.tabbar.fill_width", true);
// user_pref("userChrome.tabbar.on_bottom", true);
// user_pref("userChrome.tabbar.on_bottom.above_bookmark", true); // Need on_bottom
// user_pref("userChrome.tabbar.on_bottom.menubar_on_top", true); // Need on_bottom