black7375 / Firefox-UI-Fix

🦊 I respect proton UI and aim to improve it.
Mozilla Public License 2.0
5.43k stars 190 forks source link

Tittle bar leakage onto view port at where flexible spacer is on auto hide nav bar #820

Open 117649 opened 1 year ago

117649 commented 1 year ago

Describe the bug

When using auto hide nav bar click on place on the view port where the flexible spacer should be when the nav bar is expanded will also be count as click on the tittle bar.

Expected behavior

No response

Screenshots

image When right click on the place where the flexible spacer is when nav bar is expanded you can see tittle bar context menu is opened behind page context menu. Double click on the area will cause FF window to change its size too.

OS

Windows 10

OS - Others

No response

Firefox Version

119.0.1

Distribution

Theme

Theme - More Info

No response

user.js setup

user.js setup
```javascript // Your settings ```

Additional context

No response

117649 commented 3 days ago
@-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]) toolbarspring {
      visibility: collapse;
    }

    #navigator-toolbox:is(:hover, :focus-within)
      #nav-bar:not([customizing])
      toolbarspring {
      visibility: visible;
    }
  }
}

Found out this style can fix it @black7375.