-
-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
133 url bar is not hide when using autohide nav bar #1028
Comments
@-moz-document url(chrome://browser/content/browser.xhtml) {
@media (-moz-bool-pref: "userChrome.autohide.tabbar") and (-moz-bool-pref: "userChrome.autohide.navbar") and (-moz-bool-pref: "userChrome.autohide.navbar") and (not (-moz-bool-pref: "userChrome.tabbar.one_liner")),
(-moz-bool-pref: "userChrome.autohide.tabbar") and (-moz-bool-pref: "userChrome.tabbar.one_liner") and (-moz-bool-pref: "userChrome.autohide.navbar") and (not (-moz-bool-pref: "userChrome.tabbar.one_liner")),
(-moz-bool-pref: "userChrome.autohide.navbar") and (-moz-bool-pref: "userChrome.autohide.navbar") and (-moz-bool-pref: "userChrome.autohide.navbar") and (not (-moz-bool-pref: "userChrome.tabbar.one_liner")),
(-moz-bool-pref: "userChrome.autohide.navbar") and (-moz-bool-pref: "userChrome.tabbar.one_liner") and (-moz-bool-pref: "userChrome.autohide.navbar") and (not (-moz-bool-pref: "userChrome.tabbar.one_liner")) {
#nav-bar:not([customizing]) #urlbar {
margin-bottom: var(--uc-navbar-hide-height);
opacity: 0;
will-change: margin-bottom, opacity;
}
#navigator-toolbox:is(:hover, :focus-within) #nav-bar:not([customizing]) #urlbar {
margin-bottom: 0;
opacity: 1;
}
}
} Add this uc style for temp fix. But this only visually hide the urlbar move cursor over the area of it on page would count as mouse over it and unhide the nav bar. |
@-moz-document url(chrome://browser/content/browser.xhtml) {
@media (-moz-bool-pref: "userChrome.autohide.tabbar") and (-moz-bool-pref: "userChrome.autohide.navbar") and (-moz-bool-pref: "userChrome.autohide.navbar") and (not (-moz-bool-pref: "userChrome.tabbar.one_liner")),
(-moz-bool-pref: "userChrome.autohide.tabbar") and (-moz-bool-pref: "userChrome.tabbar.one_liner") and (-moz-bool-pref: "userChrome.autohide.navbar") and (not (-moz-bool-pref: "userChrome.tabbar.one_liner")),
(-moz-bool-pref: "userChrome.autohide.navbar") and (-moz-bool-pref: "userChrome.autohide.navbar") and (-moz-bool-pref: "userChrome.autohide.navbar") and (not (-moz-bool-pref: "userChrome.tabbar.one_liner")),
(-moz-bool-pref: "userChrome.autohide.navbar") and (-moz-bool-pref: "userChrome.tabbar.one_liner") and (-moz-bool-pref: "userChrome.autohide.navbar") and (not (-moz-bool-pref: "userChrome.tabbar.one_liner")) {
#nav-bar:not([customizing]) #urlbar {
margin-bottom: var(--uc-navbar-hide-height);
opacity: 0;
will-change: margin-bottom, opacity;
visibility: collapse;
}
#navigator-toolbox:is(:hover, :focus-within) #nav-bar:not([customizing]) #urlbar {
margin-bottom: 0;
opacity: 1;
visibility: visible;
}
}
} Added visibility setting now mostly working. |
I found out the root cause. It's fine from mozilla/gecko-dev@eca15e4#diff-0b84874f7ba5c0f2f208772857c2a9da3ae368878358b2c6d3593371b230d0c7R167 - <hbox id="urlbar" flex="1"
+ <html:div id="urlbar"
+ popover="manual" This phenomenon also occurs in full screen. I think we'll have to try your solution temporarily to mitigate the side effects and look into how to fix the problem of it not appearing immediately on hover. |
If it don't have #urlbar {
top: 0 !important;
z-index: 1000 !important;
} However, we cannot remove HTML Attribute with CSS alone, so we need to find a trick.. 😭 |
@black7375 The problem of url bar not really hide is still there. Meaning if move cursor over the area of it should be over the page would count as mouse over it and unhide the nav bar. And I still have to use this: @-moz-document url(chrome://browser/content/browser.xhtml)
{
@media (-moz-bool-pref: "userChrome.autohide.tabbar") and (-moz-bool-pref: "userChrome.autohide.navbar") and (-moz-bool-pref: "userChrome.autohide.navbar") and (not (-moz-bool-pref: "userChrome.tabbar.one_liner")),
(-moz-bool-pref: "userChrome.autohide.tabbar") and (-moz-bool-pref: "userChrome.tabbar.one_liner") and (-moz-bool-pref: "userChrome.autohide.navbar") and (not (-moz-bool-pref: "userChrome.tabbar.one_liner")),
(-moz-bool-pref: "userChrome.autohide.navbar") and (-moz-bool-pref: "userChrome.autohide.navbar") and (-moz-bool-pref: "userChrome.autohide.navbar") and (not (-moz-bool-pref: "userChrome.tabbar.one_liner")),
(-moz-bool-pref: "userChrome.autohide.navbar") and (-moz-bool-pref: "userChrome.tabbar.one_liner") and (-moz-bool-pref: "userChrome.autohide.navbar") and (not (-moz-bool-pref: "userChrome.tabbar.one_liner")) {
#nav-bar:not([customizing]) #urlbar,
#nav-bar:not([customizing]) toolbarspring {
visibility: collapse;
/* animation: delaycollapse 0.6s 6s forwards; */
}
#navigator-toolbox:is(:hover, :focus-within) #nav-bar:not([customizing]) #urlbar,
#navigator-toolbox:is(:hover, :focus-within) #nav-bar:not([customizing]) toolbarspring {
visibility: visible;
/* animation-direction: reverse;
animation-delay: 0s; */
}
@keyframes delaycollapse {
from { visibility: visible; }
to { visibility: collapse; }
}
}
} |
Hello! |
userChrome.css |
@black7375 @117649 I've found a workaround: ....but to make it works with our ui-fix we need to stop the ui-fix autohide code from triggering. Obviously ui-fix code needs to be updated which I hope @black7375 will after taking a look at this code but @117649 as of now you can simply go to the chrome/userChrome.css and add this above linked autohide-toolbox css code below the line "Add your custom styles below" and everything will work for now as expected perfectly with the toolbox not triggering till the moment you literally put cursor's end to screen edge. Warning: the content from user.js gets copied to pref.js on every launch so if you still face the glitch then you need to remove those copied lines containing userchrome and specifically the autohide ones (shouldn't be hard unless you have made huge changes to the default ui-fix code) and if you still face the glitch then try changing the position of that copied autohide-toolbar.css code like putting it below the "import leptonuserchrome css" but with correct indentation/spacing. It didn't work for me first but worked later after 2nd try. |
Only added #navigator-toolbox:not(:hover, :focus-within) #nav-bar:not([customizing]) #urlbar {
pointer-events: none;
} Is enough for me. @black7375 @Rtizer-9 Just add this one rule and nothing else then its a perfect fix. |
Describe the bug
Its floating over the page.
Expected behavior
It should hide.
Screenshots
OS
Windows 10
OS - Others
No response
Firefox Version
133
Distribution
Theme
Theme - More Info
No response
user.js
setupuser.js
setupAdditional context
No response
The text was updated successfully, but these errors were encountered: