Skip to content

Instantly share code, notes, and snippets.

@Fiaxhs
Last active June 17, 2023 17:42
Show Gist options
  • Save Fiaxhs/ec532051b9a3ab4456390d7040f24685 to your computer and use it in GitHub Desktop.
Save Fiaxhs/ec532051b9a3ab4456390d7040f24685 to your computer and use it in GitHub Desktop.
Remove empty space before tabs in Firefox compact theme
/*
* Do not remove the @namespace line -- it's required for correct functioning
* Put this file under ~/Library/Application Support/Firefox/Profiles/[you]/chrome/
*/
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
/*
* FF < 57
*/
#TabsToolbar {
padding-left: 0 !important;
}
/*
* FF >= 57
*/
#TabsToolbar .titlebar-placeholder:first-child{
width: 0 !important;
}
@ubranch
Copy link

ubranch commented Apr 23, 2023

Firefox 113

Now it's really quite easy

userChrome.css

.titlebar-spacer {
	display: none !important;
}

@kylejohnsonkj
Copy link

kylejohnsonkj commented Jun 17, 2023

For macOS, I recommend the following CSS as you want a little padding between the buttons and the tabs.

.titlebar-spacer {
        width: 12px !important;
}

This way they are aligned perfectly with the refresh button as well.

image

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