Closed RTSAjwad closed 11 months ago
Yes, this is a known limitation and not really fixable, I should probably document this in the README.
The problem is that when extensions hide tabs, they're still there in the tab bar, just visually hidden, so there's no way to know from CSS that there's only one tab that's not hidden.
Before Firefox 110, we had the first-visible-tab
and last-visible-tab
attributes in tabs, and if a tab had both true it could be hidden, but Mozilla removed them.
Ahh I understand now. Thanks for the information. Also you've done a great job with this project because it work fantastically!
Since :has
is now supported in Firefox 121, it is possible.
In firefox-gnome-theme/theme/parts/tabsbar.css
replace
#tabbrowser-tabs tab:only-of-type
with
#tabbrowser-tabs:not(:has(tab:not([hidden="true"]) ~ tab:not([hidden="true"]))) tab
Not sure if the selector could be simplified but it works.
Describe the bug When enabling gnomeTheme.hideSingleTab, it still shows the single tab if you are using the simple tab groups extension. This is because there are technically multiple tabs but they are hidden. May this has to do with hidden tabs in general.
To Reproduce
Expected behavior The tab bar should be hidden with one tab even if there are other tab groups with tabs in them
Screenshots Here you can see with this screenshot that the single tab is showing even though gnomeTheme.hideSingleTab is turned on In this screenshot you can see that there are technically other tabs but they are in another group
Setup information