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

Navbar auto hide update for 58+ compatibility, and add Bookmark bar support #67

Closed AlexVallat closed 6 years ago

AlexVallat commented 6 years ago

58+ removes the --tab-toolbar-navbar-overlap variable, so some re-jigging is required.

I've also fixed an issue where the spacers on the nav bar wouldn't count as hover-able areas, and added support for hiding the bookmark bar too (if that is visible). I'm not sure if that should be a separate file or not, I suppose it's possible you would want to auto-hide only one or the other, but to me it made more sense that they would both hide or show together.

Aiolikos commented 6 years ago

dude thanks for your work. I ve a theme though; the auto hide bookmark toolbar works but the bookmarks dont appear. it appears only space. what happen?? any advice would be highly appreciated

AlexVallat commented 6 years ago

Try turning the bookmarks toolbar off and on again, that might force it to repopulate.

Aiolikos commented 6 years ago

nothing man...I tried so many times but again the same.Only the first bookmark appears and after... free space. is it working properly for you? in any case I appreciate your help! https://imgur.com/a/wwIsP

AlexVallat commented 6 years ago

It worked for me, yes. Can you tell me the version of Firefox and OS you are using? Also, I doubt it makes a difference, but can you check if disabling the theme fixes it?

Aiolikos commented 6 years ago

I use Firefox 57 on Windows 10 (64). I tried with the default theme with no success. Maybe I am doing something wrong man, I don't really know.

AlexVallat commented 6 years ago

Thanks, I'll give 57/Win10 a try in a VM when I get a chance, see if I can reproduce it.

AlexVallat commented 6 years ago

I've tried it a few times now, and I managed to reproduce the issue once. However, after restarting Firefox the bookmarks toolbar showed fully populated as normal. All I can suggest then is to restart Firefox and see if the problem just goes away.

AlexVallat commented 6 years ago

Ah, never mind, I figured it out - it works fine if Firefox starts with the default home page (so the address bar is focused on launch), but if Firefox starts with the navbar hidden then the issue occurs. I'll see if I can find a workaround.

Aiolikos commented 6 years ago

ohh yes man I just saw it! it works fine with the default home page!!!this is the problem...thanks for your effort! if you can do something further, then ok! thanks again

AlexVallat commented 6 years ago

OK, I've pushed a change which should allow it to work even if the nav bar is hidden at startup.

Aiolikos commented 6 years ago

you are awesome! Thank you!

dannycolin commented 6 years ago

@AlexVallat There's a bug when the menubar is visible. https://imgur.com/a/UwXyk

AlexVallat commented 6 years ago

Sadly it is not possible to detect menu bar visibility at the #navigator-toolbox level using CSS, so I can not make it automatically account for whether it is visible or not.

If you want to have your menu bar always visible, you can add 20px onto the value of the --nav-bar-height variable at the top of the file, then it should be OK.

Timvde commented 6 years ago

I'm not sure if that should be a separate file or not, I suppose it's possible you would want to auto-hide only one or the other, but to me it made more sense that they would both hide or show together.

I tend to agree. Could you move the file to the toolbars folder then, instead of navbar and update the comment at the top of the file? Looks perfect apart from that, thank you!

AlexVallat commented 6 years ago

No problem, I've moved it now.

Timvde commented 6 years ago

Sorry for being annoying, but you forgot to update the comment :) And while you're at it, I noticed that your file is missing a newline at the end. It's POSIX standard to include it.

P.S. Merry Christmas!

AlexVallat commented 6 years ago

Merry Christmas. Not entirely sure what you meant about updating the comment, but I've assumed that you wanted it to mention that the bookmarks toolbar would be hidden too, so I've added that.

Timvde commented 6 years ago

Exactly what I meant, sorry for not being clear. Thanks!