-
-
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
Padding and menu background issues #136
Comments
Same issue on Photon Style and Proton Style. |
Ctrl+H -> View
I don't know why it's disabled in yours, I'm on Firefox 90.0.2 |
Thank you for the information. |
Sorting menu is fixed now, but bookmarks menu and repair text encoding menu are still not fixed. |
I can confirm that bookmarks menu bug was fixed with this commit c458c44 Edit: Found the issue. In the latest userChrome.css this line is missing #mainPopupSet > menupopup { |
@AntonZur @Vulatera
/* My environment */
menupopup {
appearance: none;
-moz-window-shadow: cliprounded;
background-color: transparent;
border: none;
border-radius: 4px;
--panel-color: var(--menu-color);
--panel-border-radius: 4px;
--panel-padding: 4px 0;
--panel-border-color: var(--menu-border-color);
--panel-background: var(--menu-background-color);
--nested-margin: -6px;
} /* My environment */
:is(panel, menupopup)::part(content) {
display: -moz-box;
-moz-box-flex: 1;
padding: var(--panel-padding);
color: var(--panel-color);
background: var(--panel-background);
border-radius: var(--panel-border-radius);
border: 1px solid var(--panel-border-color);
width: var(--panel-width);
} :root,
menupopup {
--panel-color: var(--menu-color) !important;
--panel-background: var(--menu-background-color) !important;
}
.menupopup-arrowscrollbox {
color: var(--panel-color) !important;
background: var(--panel-background) !important;
} If my guess is correct, the following script should work. Improved compatibility will help many people. |
@black7375 |
Maybe it has been fixed!! Thanks for the report. We are now closing this issue as we believe it has all been resolved. |
No, it's still not fixed. |
Bookmark menu is But looking at the screenshot of OP, the icons are strangely narrow. Lines 1606 to 1607 in 69cbe1d
In my code, if icons exist, I intentionally exclude it from the padding, margin adjust. |
It doesn't work for me. I'm using Win10 21H1 19043.1165 |
- [lp]: padding-left - [rp]: padding-right - [rm]: margin-right /** Global Menu Bookmark *****************************************************/ /*= Global Menu * menuitem, menu: var(--context-menu-background-padding)[lp] */ menupopup:is(#menu_FilePopup, #menu_EditPopup, #menu_viewPopup, #goPopup, #bookmarksMenuPopup, #menu_ToolsPopup, #menu_HelpPopup) menuitem:not(.menuitem-iconic, .in-menulist, [type="checkbox"], [checked="true"], .bookmark-item), menupopup:is(#menu_FilePopup, #menu_EditPopup, #menu_viewPopup, #goPopup, #bookmarksMenuPopup, #menu_ToolsPopup, #menu_HelpPopup) menu:not(.menu-iconic, .in-menulist, [type="checkbox"], [checked="true"]) { padding-inline-start: var(--context-menu-background-padding) !important; } /*= Bookmark * menu: 0.5em[lp] */ menupopup > menu { padding-inline-start: 0.5em; } /*= Result ===== * 0.5em => var(--context-menu-background-padding) */ menupopup:is(#goPopup, #bookmarksMenuPopup) .bookmark-item { padding-inline-start: var(--context-menu-background-padding) !important; } /** Popup Menu Bookmark ******************************************************/ /*= General ================================================================== /* = Arrowpanel * .subviewbutton: var(--arrowpanel-menuitem-padding)[lp] * .menu-text: 16[icon] + 8px[lp] = 24px * * Result: var(--arrowpanel-menuitem-padding) + 24px */ .subviewbutton { padding: var(--arrowpanel-menuitem-padding); } /*= Icon Bookmark * .subviewbutton: var(--arrowpanel-menuitem-padding)[lp] * .menu-iconic-left: 16px[icon] + 3px[rp] + 2px[rm] = 21px * .menu-iconic-text: 8px[lp] * * Result: var(--arrowpanel-menuitem-padding) + 29px */ \#BMB_bookmarksPopup .subviewbutton { padding: var(--arrowpanel-menuitem-padding); } \#BMB_bookmarksPopup hbox.menu-iconic-left { padding-inline-end: 3px !important; margin-inline-end: 2px !important; } \#BMB_bookmarksPopup label.menu-iconic-text { padding-inline-start: 8px; } /*= Result ===== * Diff Length: 24 - 29 = -5 * Reduce Target Length: 8 - 5 = 3 */ \#BMB_bookmarksPopup label.menu-iconic-text { padding-inline-start: 3px !important; } /*= None Icon Bookmark ===================================================== * .subviewbutton: var(--arrowpanel-menuitem-padding)[lp] * .menu-text: 21px[lp] * * Result: var(--arrowpanel-menuitem-padding) + 21px */ \#BMB_bookmarksPopup label.menu-text { margin-inline-start: 21px !important; padding-inline-start: 0 !important; } /*= Result ===== * Diff Length: 24 - 21 = 3 * Increase Target Length: 3 */ menupopup:is(#BMB_bookmarksPopup) menuitem:not(.menuitem-iconic, [disabled="true"]), menupopup:is(#BMB_bookmarksPopup) menu:not(.menu-iconic) { padding-inline-start: calc(var(--arrowpanel-menuitem-padding) + 3px) !important; }
- [lp]: padding-left - [rp]: padding-right - [rm]: margin-right /** Global Menu Bookmark *****************************************************/ /* None: Mac doesnt have global menu bookmark in browser */ /** Popup Menu Bookmark ******************************************************/ /*= General =================================================================*/ /* = Arrowpanel * .subviewbutton: var(--arrowpanel-menuitem-padding)[lp] * .toolbarbarbutton-icon: 16px[icon] * .toolbarbarbutton-text: var(--arrowpanel-menuicon-padding, 8px)[lp] * * Result: var(--arrowpanel-menuitem-padding) + var(--arrowpanel-menuicon-padding) + 16px */ /* = Icon Bookmark * .subviewbutton: var(--arrowpanel-menuitem-padding)[lp] * .menu-iconic-left: 3px[rm] * .menu-iconic-icon: 16px[icon] + 5px[rm] * * Result: var(--arrowpanel-menuitem-padding) + 24px */ \#BMB_bookmarksPopup .subviewbutton { padding: var(--arrowpanel-menuitem-padding); } \#BMB_bookmarksPopup .subviewbutton > .menu-iconic-left { margin-inline-end: 3px; } .menu-iconic-icon { margin-inline-end: 5px; 8px /*= Result ===== * DONT TOUCH */ /*= Empty Icon at list ======================================================*/ .subviewbutton:not([image], [targetURL], .bookmert-item) > .menu-iconic-left { display: none; } menu, menuitem, menucaption { list-style-iamge: none; } /*= Result ===== * Show Icon */ \#BMB_bookmarksShowAllTop { list-style-image: url("chrome://browser/skin/bookmark-star-on-tray.svg") !important; } \#BMB_bookmarksShowAllTop > .menu-conic-left { display: -moz-box !important; } /*= None Icon Bookmark ===================================================== * .subviewbutton: var(--context-menu-background-padding)[lp, rp] * .menu-text: 21px[lp] * * Result(Icon): var(--context-menu-background-padding) * Result(Text): var(--context-menu-background-padding) + 21px */ :not(menu, #ContentSelectDropdown, #context-navigation) > menupopup > menuitem:not(.menuitem-iconic), :not(menu, #ContentSelectDropdown, #context-navigation) > menupopup > menu:not(.menu-iconic), menupopup:is(#menu_FilePopup, #menu_EditPopup, #menu_viewPopup, #goPopup, #bookmarksMenuPopup, #menu_ToolsPopup, #menu_HelpPopup) menuitem:not(.menuitem-iconic, .in-menulist, [type="checkbox"], [checked="true"], .bookmark-item), menupopup:is(#menu_FilePopup, #menu_EditPopup, #menu_viewPopup, #goPopup, #bookmarksMenuPopup, #menu_ToolsPopup, #menu_HelpPopup) menu:not(.menu-iconic, .in-menulist, [type="checkbox"], [checked="true"]), \#blockedPopupDontShowMessage { /* Icon */ background-position: left var(--context-menu-background-padding) center !important; /* Text */ padding-inline-start: var(--context-menu-background-padding) !important; } @supports -moz-bool-pref("layout.css.osx-font-smoothing.enabled") { :root { --context-menu-background-padding-default: 10px; --context-menu-mac-padding: 21px; } /* .subviewbutton - rp */ :not(menu, #ContentSelectDropdown, #context-navigation) > menupopup > menuitem:not(.menuitem-iconic, [type="checkbox"], [checked="true"], .in-menulist), :not(menu, #ContentSelectDropdown, #context-navigation) > menupopup > menu:not(.menu-iconic, [type="checkbox"], [checked="true"], .in-menulist), #blockedPopupDontShowMessage { padding-inline-end: var(--context-menu-background-padding) !important; /* same as var(--context-menu-background-padding-default) */ } } /*= Result ===== * Result(Icon): --context-menu-background-padding to var(--arrowpanel-menuitem-padding) * Result(Text): * (var(--arrowpanel-menuitem-padding) + 24px)) - (var(--arrowpanel-menuitem-padding) + 21px) = 3px */ \#BMB_bookmarksPopup { --context-menu-background-padding: var(--arrowpanel-menuitem-padding); } menupopup:is(#BMB_bookmarksPopup) menuitem:not(.menuitem-iconic, [disabled="true"]), menupopup:is(#BMB_bookmarksPopup) menu:not(.menu-iconic) { padding-inline-start: calc(var(--arrowpanel-menuitem-padding) + 3px) !important; }
/* Global */ menupopup > menuitem, menupopup > menu { padding-inline-start: 1em; } .menu-iconic > .menu-iconic-left, .menuitem-iconic > .menu-iconic-left { margin-inline-end: 8px; } /* 16px + 8px => 24px */ menupopup:is(#goPopup, #bookmarksMenuPopup) menuitem:not(.menuitem-iconic, [disabled="true"]), menupopup:is(#goPopup, #bookmarksMenuPopup) menu:not(.menu-iconic) { margin-inline: 0 !important; padding-inline-start: calc(1em + 16px + 8px) !important; background-position: left 1em center !important; } /*BMB*/ #BMB_bookmarksPopup .subviewbutton { padding: var(--arrowpanel-menuitem-padding); /* 5px */ } .subviewbutton { margin-inline: var(--arrowpanel-menuicon-padding); } #BMB_bookmarksPopup .subviewbutton > .menu-iconic-text, #PlacesToolbar menu > .menu-iconic-text, #PlacesToolbar menuitem > .menu-iconic-text, .addon-banner-item > .toolbarbutton-text, .subviewbutton-iconic > .toolbarbutton-text, .subviewbutton[image] > .toolbarbutton-text, .subviewbutton[targetURI] > .toolbarbutton-text, .subviewbutton.bookmark-item > .toolbarbutton-text, .subviewbutton[checked="true"] > .toolbarbutton-text { padding-inline-start: 8px; }
There have been quite a few changes and updates. |
It seems to work fine in the latest version. |
Describe the bug
A clear and concise description of what the bug is.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
https://imgur.com/a/qmUXsWa
Environment (please complete the following information):
Check like
- [x]
.about:support
-version
]Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: