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

Text on context menus not properly aligned #177

Closed
1 task done
infiniwave opened this issue Aug 7, 2024 · 26 comments
Closed
1 task done

Text on context menus not properly aligned #177

infiniwave opened this issue Aug 7, 2024 · 26 comments

Comments

@infiniwave
Copy link

What happened?

See images provided
image
image

Reproducible?

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

Version

1.0.0-a.13

Severity impact

Low

What platform are you seeing the problem on?

Windows

Relevant log output

No response

@mauro-balades
Copy link
Member

This doesnt appear for me, do you have any userChrome.css?

@infiniwave
Copy link
Author

No, I don't

@infiniwave
Copy link
Author

Still occurs on 1.0.0-a.22

2024-08-17.18-26-33.mp4

@KarimElsayad247
Copy link
Contributor

Happens to me on 1.0.1-a.5 (Linux)

image

@Bellisario
Copy link

Hello, any update?
"Pin to toolbar" menu item seems still not aligned on v1.0.1-a.18.

Screenshot 2024-11-08 at 12 27 47

@gnc-07
Copy link

gnc-07 commented Dec 11, 2024

@infiniwave Is this still an issue on the latest version (1.0.2-b.0)?

@infiniwave
Copy link
Author

@gnc-07 Indeed it is:
图片
图片

@salamijason
Copy link

Was unable to recreate on a fresh profile in b.2. For everyone who is still facing the issue, could you try on a new profile? This will help you move ur data to a new profile if you need.

@salamijason salamijason moved this to More info needed in Zen Browser - public roadmap Dec 15, 2024
@Bellisario
Copy link

Was still able to reproduce my issue #177 (comment) of "Pin to Toolbar" misalignment on the latest Zen Browser version (1.0.2-b.2).

To reproduce the issue:

  • create a new browser profile
  • follow the initial configuration (I chose "Multiple toolbars")
  • install an extension (ex. uBlock Origin)
  • install another extension (to enable "Extensions" button) (ex. Dark Reader)
  • click on the "Extensions" button
  • click on the three dots of any extension in here
  • see that "Pin to Toolbar" text is misaligned and goes on the pin icon

@salamijason
Copy link

was able to reproduce on macOS b.2, thank you for all the input!
image

@salamijason salamijason moved this from More info needed to ToDo in Zen Browser - public roadmap Dec 15, 2024
@KarimElsayad247
Copy link
Contributor

It's there on a build based on a9fb598 on main branch. I could only see the problem on linux, on windows the context menus look fine.

image

The problem can't be reproduced on Firefox 133 since it doesn't have context menu icons.

@KarimElsayad247
Copy link
Contributor

Some specifics:

  • Only extension icons are non-aligned
  • Correctly positioned items have a padding-left of 38px, while the mis-positined ublock item has a padding left of just 5px, but that obviously isn't just a 30px difference. Here's what it looks like if I give it the same 38px padding
    image

So there is definitely something funky going on with the way menu items are layed here.

@KarimElsayad247
Copy link
Contributor

ahhhhh, the other icons are positioned absolutely, that's why they behave differently

image

@KarimElsayad247
Copy link
Contributor

So this 38px padding is the padding for the text, not icon

@KarimElsayad247
Copy link
Contributor

It now looks good once I give the icon absolute positioning in line with the other icons, and remove the left padding on text

image

@KarimElsayad247
Copy link
Contributor

HOWEVER, this still leaves checkbox menu items broken. Still need investigation

image

@KarimElsayad247
Copy link
Contributor

Though I guess the fix would be similar, just remove the checkbox from normal flow and absolutely position it.

@KarimElsayad247
Copy link
Contributor

Though I do have to ask.... @mr-cheff Why are the icons absolutely positioned instead of simply being positioned normally?

@mauro-balades
Copy link
Member

Is it fixed now?

@mauro-balades
Copy link
Member

Though I do have to ask.... @mr-cheff Why are the icons absolutely positioned instead of simply being positioned normally?

One of those things we inherit from firefox

@Bellisario
Copy link

Is it fixed now?

Same "Pin to Toolbar" issue on 1.0.2-b.5 for me.

@KarimElsayad247
Copy link
Contributor

KarimElsayad247 commented Dec 31, 2024

Nope, same on b.5

image

@salamijason
Copy link

just to clarify, the text is now properly aligned and the only issue left is the icons? cheff mentioned above that the weird icon alignment is inherited from ff. please let me know if i missed something. will be closing issue now.

@Bellisario
Copy link

@salamijason seems my issue is still present on the latest beta:

Hello, any update? "Pin to toolbar" menu item seems still not aligned on v1.0.1-a.18.

Screenshot 2024-11-08 at 12 27 47

@salamijason
Copy link

@Bellisario strange, I can't reproduce that. Could you try a new profile?

@Bellisario
Copy link

@salamijason yes, I just tried on a new profile and it seems the issue is still present.

These are the steps I took (don't know if it's relevant but I'm using a Mac):

  • create a new profile from about:profiles and open it
  • setup Zen to use multiple toolbars (leaving everything else as default)
  • after setup complete, open "Add-ons manager" by clicking on the "extensions" button
  • install two extensions (I chose uBlock Origin and Dark Reader)
  • make sure only one of the two is pinned (it won't show the bug if there are no "unpinned" extensions) (in my case Dark Reader wasn't pinned by default)
  • click on the "extensions" button, then on the three dots of an extension there (Dark Reader for me)
  • see that the "Pin to toolbar" button is over the pin icon
Image

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

7 participants