Skip to content

Instantly share code, notes, and snippets.

@Narann
Last active September 24, 2020 06:51
Show Gist options
  • Save Narann/1627f2576912394edfe19a15f5910d80 to your computer and use it in GitHub Desktop.
Save Narann/1627f2576912394edfe19a15f5910d80 to your computer and use it in GitHub Desktop.
Firefox multi row tabs via userChrome.css

Firefox multi row tabs via userChrome.css

Create a file:

$HOME/.mozilla/firefox/<your profile>/chrome/userChrome.css

With this in it:

.tabbrowser-tab:not([pinned]) {min-width:35px;max-width:35px;}
.tabbrowser-tab,.tab-background {height:var(--tab-min-height);}
.tab-stack {width: 100%;}
#tabbrowser-tabs .scrollbox-innerbox {display: flex;flex-wrap: wrap;}
#tabbrowser-tabs .arrowscrollbox-scrollbox {overflow: visible;display: block;}
#titlebar,#titlebar-buttonbox{height:var(--tab-min-height) !important;}
#titlebar{margin-bottom:calc(var(--tab-min-height)*-1) !important;}
#main-window[sizemode="maximized"] #titlebar{margin-bottom:calc(6px + var(--tab-min-height)*-1) !important;}
#main-window[sizemode="maximized"] #TabsToolbar{margin-left:var(--tab-min-height);}
#titlebar:active{margin-bottom:0 !important;}
#titlebar:active #titlebar-content{margin-bottom:var(--tab-min-height) !important;}
#tabbrowser-tabs .scrollbutton-up,.tabbrowser-tabs .scrollbutton-down,#alltabs-button,.tabbrowser-tab:not([fadein]){display: none;}

Restart Firefox.

New version here.

toolkit.legacyUserProfileCustomizations.stylesheets must be set to true in about:config.

New version (FF 81) here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment