firefox-csshacks icon indicating copy to clipboard operation
firefox-csshacks copied to clipboard

hide_tabs_with_one_tab remove newtab button hover css

Open Anarky opened this issue 3 years ago • 7 comments
trafficstars

Hello, with a chrome folder with only hide_tabs_with_one_tab.css imported, the new tab button lose its style (a grey box) when it is hovered.

Anarky avatar Sep 21 '22 21:09 Anarky

What Firefox version you use and what OS do you have?

This seems to work fine with Firefox 105 on Windows 10.

MrOtherGuy avatar Sep 22 '22 04:09 MrOtherGuy

I'm using Firefox 105 on Linux.

I tried to modify it, if I remove the /* Button re-styling */ block the styling reappears on hover, but of course it prevents to hide the tabs bar completely: fx

I tried to add this but for some reason it doesn't work:

.tabbrowser-tab[first-visible-tab="true"][last-visible-tab="true"] #tabs-newtab-button{
  visibility: collapse !important;
}

Anarky avatar Sep 24 '22 15:09 Anarky

Try:

.tabbrowser-tab[first-visible-tab="true"][last-visible-tab="true"] ~ #tabs-newtab-button{
  visibility: collapse !important;
}

MrOtherGuy avatar Sep 24 '22 15:09 MrOtherGuy

No it doesn't change anything, it's still the same small bar.

Anarky avatar Sep 24 '22 15:09 Anarky

I'll need to boot up my linux machine to test stuff out when I can.

MrOtherGuy avatar Sep 24 '22 15:09 MrOtherGuy

Sorry to bother you, if you want I can try more things.

Anarky avatar Sep 24 '22 15:09 Anarky

Hmm. II tried that style on my Linux setup (Fedora 35) and it seems to be working correctly with Firefox 104 (not updated to 105 yet) but also on Nightly 107 build. At least I can't see any issues related to newtab button.

There's another thing that will affect that style though which is the new "Firefox View" - button and things related to that (this might only concern Firefox 106, currently in beta). To make that style behave correctly you would need to:

  1. remove the Firefox View button from tabs toolbar (just right-click and remove)
  2. Go to about:config and set browser.tabs.tabmanager.enabled to false and restart Firefox

But again, that would have nothing to do with the issue you are describing - I really don't know what is happening there :(

MrOtherGuy avatar Sep 26 '22 05:09 MrOtherGuy