-
-
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; }
}
}
} |
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: