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

bugfix: menu item alignment issue #299

Merged
merged 4 commits into from
Jan 3, 2024

Conversation

phlpsong
Copy link
Collaborator

@phlpsong phlpsong commented Jan 3, 2024

#298 menu item alignment issue

Before:
截屏2024-01-03 20 29 29

After:
截屏2024-01-03 21 00 12

@tisfeng appreciate it if you could review this PR.

Copy link
Owner

@tisfeng tisfeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

试了一下,这种方式确实可以 😃

我之前好像也看过这个回答 https://stackoverflow.com/a/18034142/8378840 ,但我对 NSMenuItem 不了解,不清楚这个原理是什么,就没有尝试。你能稍微解释一下么?

Easydict/Feature/StatusItem/EZMenuItemManager.m Outdated Show resolved Hide resolved
@phlpsong phlpsong requested a review from tisfeng January 3, 2024 13:39
Co-authored-by: Tisfeng <tisfeng@gmail.com>
@tisfeng
Copy link
Owner

tisfeng commented Jan 3, 2024

很棒,欢迎更多的 PR 👍

@tisfeng tisfeng merged commit a2ce4b5 into tisfeng:dev Jan 3, 2024
2 checks passed
@phlpsong
Copy link
Collaborator Author

phlpsong commented Jan 3, 2024

很棒,欢迎更多的 PR 👍

Thanks! Sure ~

@phlpsong phlpsong deleted the phlpsong/menu-shortcut-align branch January 4, 2024 11:47
tisfeng added a commit that referenced this pull request Jan 6, 2024
* fix: issue #298 menu item alignment issue

* fix: update format

* Update Easydict/Feature/StatusItem/EZMenuItemManager.m

Co-authored-by: Tisfeng <tisfeng@gmail.com>

---------

Co-authored-by: Tisfeng <tisfeng@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants