Timvde / UserChrome-Tweaks

A community maintained repository of userChrome.css tweaks for Firefox
GNU General Public License v3.0
1.25k stars 121 forks source link

Autohide "Reload in address bar" #51

Closed Madis0 closed 6 years ago

Madis0 commented 6 years ago

Automatically hides the icon of this extension, showing up only on address bar hover.

Timvde commented 6 years ago

There's at least one more add-on like this: https://addons.mozilla.org/en-US/firefox/addon/australis-refresh-in-url-bar/

It might be a good idea to add support for that add-on too.

Madis0 commented 6 years ago

Good point, added support to the three extensions I could find. I think the code could be compacted with moz-any, but I couldn't figure out the proper syntax at this point.

Timvde commented 6 years ago

Seems to be working! Although there is a small extra whitespace that gets added when the reload icon is hidden. It was very noticeable when I had all three extensions installed (to test), but it's very minor with only one of them, which is definitely the normal use case. I have no issues merging as-is, but if you're interested in fixing it, I'll wait a little longer.

Madis0 commented 6 years ago

Although there is a small extra whitespace that gets added when the reload icon is hidden.

I have been trying to fix it, going from 1.1 (copied) to 1.4. Now I think the highest I can go is 1.5, because going further - such as 1.7 - is going to hide other PageActions in compact theme (though it looks good on normal). But yeah, I think it is too small of an issue to bother with density-specific sizes, merge it! 😛

Timvde commented 6 years ago

Sure thing! Thanks!