rafaelmardojai / firefox-gnome-theme

A GNOME👣 theme for Firefox🔥
The Unlicense
3.42k stars 157 forks source link

[Feature] Hide the tab bar if there is only one tab #669

Closed gaussandhisgun closed 12 months ago

gaussandhisgun commented 12 months ago

Is your feature request related to a problem? Please describe.

Epiphany (also known as Gnome Web) hides the tab bar if there is only one tab to display. Makes perfect sense, right? If there are no tabs to switch, there should not be a switcher.

Describe the solution you'd like

Hiding the tab bar when there is only one tab in it.

Describe alternatives you've considered

This CSS:

#tabbrowser-arrowscrollbox:not(:has(.tabbrowser-tab + .tabbrowser-tab)) {
    visibility: collapse !important;
}

works for me in Firefox 117.

Additional context

изображение

rafaelmardojai commented 12 months ago

The theme as an optional feature for that, check the readme: https://github.com/rafaelmardojai/firefox-gnome-theme#enabling-optional-features