r/FirefoxCSS • • 2d ago

Solved How to remove vertical tab bar top and bottom overflow shadow in Firefox v161

Post image

How do you remove the top and bottom overflow shadows(see image) on the vertical tab bar in Firefox v161?

These two previous solutions doesn't work:

spacer[part="overflow-start-indicator"],
spacer[part="overflow-end-indicator"] {
    display: none !important;
}

.

#tabbrowser-arrowscrollbox[orient="vertical"] {
    /* When placed here, it hides top and bottom overflow shadow on vertical tabs bar */
    --toolbox-background-color: transparent !important;
}

In v161, it seems like it's these variables you need to change, but no matter where I place them, it doesn't work. Even when I copy the code that the variables are in and change the variables value there, it doesn't work.

--tab-overflow-fade-start
--tab-overflow-fade-end

I have found these two crude solutions.

This one makes scrolling very slow:

#tabbrowser-arrowscrollbox[orient="vertical"] {
    --tab-height-with-margin-padding: 0px !important;
}

This one doesn't seem to break anything, but it feels like it's not a good solution:

#tabbrowser-arrowscrollbox[orient="vertical"] {
    --tab-margin-inline-inner: -1px !important;
}
5 Upvotes

11 comments sorted by

3

u/t31os 2d ago • Bravo

See if this does the trick:

#tabbrowser-arrowscrollbox[orient="vertical"][overflowing] {
	--uc-vertical-tab-mask: none;
}
scrollbox[orient="vertical"] {
	mask: var(--uc-vertical-tab-mask, revert-rule) !important;
}

2

u/Salty_East4020 2d ago

It works! Thank you so much!

1

u/t31os 2d ago

You're welcome. :)

1

u/Salty_East4020 2d ago

A quick question, is there a downside with simplifying your code to this(except for the no fallback)?

scrollbox[orient="vertical"] {
    mask: none !important;
}

2

u/t31os 2d ago edited 2d ago

It will match other vertical scrollboxes that aren't specific to the tab sidebar.

That's why we set the variable inside a selector specific to vertical tabs and then revert it when the var isn't present, so we know the rule is only applied for that specific case.

2

u/Salty_East4020 2d ago

Interesting! Is there any noticeable difference in performance?

2

u/t31os 2d ago

I would not expect for there to be any perceptible difference at all.

2

u/Salty_East4020 2d ago

No more questions, thank you so much!

1

u/Salty_East4020 1d ago

I'm sorry, I have one more question.

This code seems to also only effect the vertical tab bar scrollbox since no other scrollboxes use these variables, but would you still recommend your code??

scrollbox[orient="vertical"] {
    --tab-overflow-fade-start: 0px !important;
    --tab-overflow-fade-end: 0px !important;
}

2

u/t31os 1d ago

That will still apply the mask gradient, but in such a way that it's essentially invisible.

The difference is removing the effect (my suggestion) vs reconfiguring it to have no visible effect (your code above), either will essentially achieve the same thing, which you use really up to you.

2

u/Salty_East4020 1d ago

OK, so I will use your code. Thank you!