Skip to content
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

right-click context-menu icons #130

Closed
sean1138 opened this issue Jul 22, 2021 · 6 comments
Closed

right-click context-menu icons #130

sean1138 opened this issue Jul 22, 2021 · 6 comments
Labels
Class::Icon Icon for panels, menus, libraries Class::Padding Padding and margin related layout Component::Context-Menu Only for context menu Env::Win7 Issues on Windows7 Env::Win8 Issues on Windows8 or Windows8.1 Priority::High Solve and focus on it first

Comments

@sean1138
Copy link

sean1138 commented Jul 22, 2021

not sure if these are already on the radar, didn't see any open issues that looked relevant.

"loop" and "watch in picture-in-picture" don't have icons when right-clicking a video:
image

when right-clicking a text input "check spelling" text alignment doesn't match the other list items:
image
image

text alignment can be fixed in this comment

also noticed that the right edge of these context menu icons are colliding with a border/edge.
image
adding !important to this rule seems to fix the border collision at right of icons:
--context-menu-background-padding: var(--context-menu-background-padding-default) !important;
image
also missing a redo icon in the context menu - could just mirror or flip the undo icon horizontal.

will update if i find more.

@black7375
Copy link
Owner

It's a windows 7?
I need to reconfigure the VM environment, so I will recreate it on the weekend.

@black7375 black7375 added Class::Icon Icon for panels, menus, libraries Class::Padding Padding and margin related layout Component::Context-Menu Only for context menu Env::Windows Issues on Windows10, Windows11, unknown windows labels Jul 22, 2021
@sean1138
Copy link
Author

sean1138 commented Jul 22, 2021

yes, windows 7.
image
disabling this rule seemed to fix my text alignment in the right-click context menus.
image
userChrome.css rule disabled:

:not(menu, #ContentSelectDropdown, #context-navigation) > menupopup > menuitem:not(.menuitem-iconic, [type="checkbox"], .in-menulist),
    :not(menu, #ContentSelectDropdown, #context-navigation) > menupopup > menu:not(.menu-iconic, [type="checkbox"], .in-menulist),
    #blockedPopupDontShowMessage {
      padding-inline-start: calc(var(--context-menu-background-padding) + var(--context-menu-text-padding)) !important;
    }

disabling that rule makes a rule a few lines before it take effect (line 1121 in my file) giving me what looks to be the correct text alignment.
image

@sean1138
Copy link
Author

sean1138 commented Jul 22, 2021

disabling the padding-inline-start here fixes the alignment of my ublock origin addon icon in the context menu.

:not(menu, #ContentSelectDropdown, #context-navigation) > menupopup > menuitem,
  :not(menu, #ContentSelectDropdown, #context-navigation) > menupopup > menu,
  #blockedPopupDontShowMessage {
    background-position: left var(--context-menu-background-padding) center !important;
    padding-inline-start: var(--context-menu-background-padding) !important;
  }

image

image

@sean1138
Copy link
Author

this issue was supposed to be just for the missing icons, sorry about that.
probable fix for text alignment and padding for win7:

/* Padding - Windows 7 */
  @media (-moz-os-version: windows-win7 ){
    :root {
      /*--context-menu-background-padding: 1em;*/
      --context-menu-text-padding: calc(var(--menu-padding) + var(--context-menu-background-padding-default) + 16px);
    }

    :not(menu, #ContentSelectDropdown, #context-navigation) > menupopup > menuitem,
    :not(menu, #ContentSelectDropdown, #context-navigation) > menupopup > menu,
    #blockedPopupDontShowMessage {
      background-position: left var(--context-menu-background-padding) center !important;
      padding-inline-start: 0 !important;
    }

    :not(menu, #ContentSelectDropdown, #context-navigation) > menupopup > menuitem:not(.menuitem-iconic, [type="checkbox"], .in-menulist),
    :not(menu, #ContentSelectDropdown, #context-navigation) > menupopup > menu:not(.menu-iconic, [type="checkbox"], .in-menulist),
    #blockedPopupDontShowMessage {
      /*padding-inline-start: calc(var(--context-menu-background-padding) + var(--context-menu-text-padding)) !important;*/
    }

    /* Checkbox */
    :not(menu, #ContentSelectDropdown, #context-navigation) > menupopup > menuitem[type="checkbox"][checked="false"] > .menu-iconic-left {
      padding-inline-start: var(--context-menu-text-padding);
    }
  }

  /* Padding - Windows 8+ */
  @media (-moz-os-version: windows-win8 ),
         (-moz-os-version: windows-win10) {
    :root {
/* code unchanged from here on */

screenshot of the code for more context?
image
looks correct here with the above added to my userChrome.css file :)
image

@black7375
Copy link
Owner

Thank you.
I think the code will help. We will add it to the CREDITS list after this patch.

@black7375 black7375 added the Priority::High Solve and focus on it first label Jul 23, 2021
@black7375
Copy link
Owner

Thank you 😍

black7375 added a commit that referenced this issue Jul 26, 2021
@black7375 black7375 added Env::Win7 Issues on Windows7 Env::Win8 Issues on Windows8 or Windows8.1 and removed Env::Windows Issues on Windows10, Windows11, unknown windows labels Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Class::Icon Icon for panels, menus, libraries Class::Padding Padding and margin related layout Component::Context-Menu Only for context menu Env::Win7 Issues on Windows7 Env::Win8 Issues on Windows8 or Windows8.1 Priority::High Solve and focus on it first
Projects
None yet
Development

No branches or pull requests

2 participants