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

Menu Alignment Issues #4691

Closed
4 tasks done
sillvva opened this issue Jan 29, 2025 · 3 comments
Closed
4 tasks done

Menu Alignment Issues #4691

sillvva opened this issue Jan 29, 2025 · 3 comments

Comments

@sillvva
Copy link

sillvva commented Jan 29, 2025

Captchas

  • I have read the instructions.
  • I have searched existing issues and avoided creating duplicates.
  • I am not filing an enhancement request.

What happened?

There are several menus that appear to have alignment issues on both Windows and MacOS.

Windows

Image

MacOS

Image
Image

Reproducible?

  • I have checked that this issue cannot be reproduced on Mozilla Firefox.

Version

1.7.2b

What platform are you seeing the problem on?

Other

Relevant log output if applicable

@sillvva
Copy link
Author

sillvva commented Feb 4, 2025

It seems the issue has to do with menu items that count as checkboxes. This sort of fixes it:

:not(:not(menubar) > menu, #ContentSelectDropdown) > menupopup > menuitem:not(.menuitem-iconic, [type="checkbox"], [type="radio"], .in-menulist, .in-menulist menuitem, .unified-nav-current), :not(:not(menubar) > menu, #ContentSelectDropdown) > menupopup > menu:not(.menu-iconic, [type="checkbox"], [type="radio"], .in-menulist, .in-menulist menu, .unified-nav-current), #toggle_toolbar-menubar, #PanelUI-history toolbarbutton, #unified-extensions-context-menu menuitem {
  padding-inline-start: calc( var(--fp-contextmenu-menuitem-padding-inline) + 16px + var(--fp-contextmenu-menuicon-margin-inline) ) !important;
  &[type="checkbox"] {
    padding-inline-start: 34px !important;
    .menu-iconic-text {
      padding-inline-start: 1px !important;
    }
    &[checked="true"] {
      padding-inline-start: 8px !important;
      --menu-image: none !important;
      .menu-iconic-text {
        padding-inline-start: 26px !important;
      }
    }
  }
}

Before

Image

After

Pin to Toolbar is checked

Image

Pin to Toolbar is unchecked

Image

@emma-sg
Copy link

emma-sg commented Feb 13, 2025

Another example (on macOS) that I haven't seen posted in this issue yet

Image

Copy link

dosubot bot commented Mar 16, 2025

Hi, @sillvva. I'm Dosu, and I'm helping the desktop team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • Alignment problems with menus in version 1.7.2b on Windows and MacOS.
  • The issue does not occur in Mozilla Firefox.
  • You suggested a CSS fix for menu items functioning as checkboxes, with before-and-after images.
  • @emma-sg provided another example of the issue on macOS, supported by @neyzm.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of the desktop repository by commenting here.
  • If there is no further activity, I will automatically close this issue in 7 days.

Thank you for your understanding and contribution!

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Mar 16, 2025
@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 23, 2025
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants