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

fix(ProfileContextMenu): don't overflow the title #14484

Conversation

caybro
Copy link
Member

@caybro caybro commented Apr 18, 2024

What does the PR do

  • calculate the text width correctly, taking into account all the contents (verification icons, edit button) and also the margins
  • extra commit to fix the erroneous "Send CR" menu entry

Fixes #14462

Affected areas

ProfileContextMenu

Screenshot of functionality (including design for comparison)

  • I've checked the design and this PR matches it

No clipped icons:
image

Pending CR + context menu:
image

image

- do not display the "Send contact request" menu item when we've already
sent one; happened because now we have an enum for the contact request
state
- calculate the text width correctly, taking into account all the
contents (verifications icons, edit button) and also the margins

Fixes #14462
@status-im-auto
Copy link
Member

status-im-auto commented Apr 18, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 6b1cd63 #1 2024-04-18 22:27:26 ~6 min macos/aarch64 🍎dmg
✔️ 6b1cd63 #1 2024-04-18 22:28:03 ~6 min tests/nim 📄log
✔️ 6b1cd63 #1 2024-04-18 22:31:17 ~10 min macos/x86_64 🍎dmg
✔️ 6b1cd63 #1 2024-04-18 22:31:58 ~10 min tests/ui 📄log
✔️ 6b1cd63 #1 2024-04-18 22:37:33 ~16 min linux/x86_64 📦tgz
✔️ 6b1cd63 #1 2024-04-18 22:54:16 ~33 min windows/x86_64 💿exe

Copy link
Contributor

@alexjba alexjba left a comment

Choose a reason for hiding this comment

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

LGTM

@caybro caybro merged commit 78acdca into master Apr 26, 2024
8 checks passed
@caybro caybro deleted the 14462-untrusted-and-contact-marker-clipped-in-profile-context-menu branch April 26, 2024 08:46
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.

Untrusted and contact marker clipped in profile context menu
4 participants