-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
uBO webext doesn't fill entire panel space #2809
Comments
Reproducible on Firefox Nightly in Win7 x64 |
Unlike the legacy version, uBO/webext can't control the size of the popup placeholder.
|
Ok I see, uBO is inside the overflow menu, so I can reproduce. There is also an issue in advanced panel mode, it's being truncated. This is not trivial, so far all popup code never had to assume the popup panel was set in a fixed-width parent frame. |
I believe this is related: https://bugzilla.mozilla.org/show_bug.cgi?id=1373490. With the legacy version, uBO was able to adjust its size because if was able to gather knowledge about the current context, that its panel was being rendered inside the menu. It's not possible to get context knowledge with webext. What could help is if the Firefox framework set a specific predefined class name on the panel's |
Adding a screenshot to add that,
Using Nightly 57.0a1 (2017-08-03) on Linux. EDIT gah, just saw @gorhill had already noticed this in above comment #2809 (comment) . Sorry for the noise.
|
@gorhill Would it be possible to include a small script to get the visible width of the menu each time it's opened? If it detects that not all of the menu is visible horizontally, it can then apply a different set of style rules. Alternatively, rewriting the UI with responsive design in mind should alleviate the issue as well. |
As this issue remains unfixed in uBO, #2809 (comment) (advanced mode unusable) can be worked around in userChrome.css:
#widget-overflow .PanelUI-subView[title^="uBlock Origin"] {
min-width: 492px !important;
}
#widget-overflow, #widget-overflow .PanelUI-subView {
min-width: 492px !important;
} Improved CSS welcome ;) Docs for Firefox chrome CSS inspection here: https://developer.mozilla.org/en-US/docs/Tools/Browser_Toolbox |
A better version of option 2: #widget-overflow .PanelUI-subView {
min-width: 492px !important;
}
#widget-overflow-mainView {
max-width: none !important;
width: 492px !important;
}
#widget-overflow-fixed-list > .toolbarbutton-1 {
max-width: none !important;
} |
The latest commit does not fix the unfilled space, but it does solve the popup panel being unusable when the overview pane is enabled. |
Should be fixed in Nightly https://bugzilla.mozilla.org/show_bug.cgi?id=1783972 |
Describe the issue
While the old, even the hybrid filled the entire panel, the webext leaves an empty space.
Screenshot in which the issue can be seen
Steps for anyone to reproduce the issue
Your settings
Hide placeholders of blocked elements
Show the number of blocked requests on the icon
Make use of context menu where appropriate
Enable cloud storage support
Disable pre-fetching (to prevent any connection for blocked network requests)
Disable hyperlink auditing
[If you fail to provide this info, I will mark the issue as invalid. Lists all settings which differs from default settings]
The text was updated successfully, but these errors were encountered: