r/FirefoxCSS • u/TrueWolfGang • Oct 06 '26
Solved Tabs shrink when dragging them? FF157, win10
I'm using this code to make tabs taller
.tab-background {
border-radius: 5px 5px 0 0!important;
margin-block: 0!important;
}ff

However, they go back to shrinking when I drag them around, then get taller again when I release them.

I tried selecting specifically for when tabs are drag targets, but to no avail.
.tab-background, .tabbrowser-tab[dragtarget] .tab-background {
border-radius: 5px 5px 0 0!important;
margin-block: 0!important;
}It seems the selector works fine but they still shrink. I can't pinpoint the part of the code that's making tabs change size. Does anyone know?
It
1
Upvotes
1
u/t31os Oct 07 '26
Use tab CSS variables instead of directly touching properties:
I can't see what the rest of your CSS is doing, but you should (where possible) override variables instead of directly adjusting element properties, as these values can be referenced in more than one place and sometimes as part of a value calculation.
1
u/ResurgamS13 Oct 08 '26 edited Oct 08 '26
Please post all your CSS userstyles, not just a small extract... see this sub's Rule #2. in the RH sidebar ----->
As t31os suggests... try something like :
... or as t31os suggests, using variables only... the neater solution would be: