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: Truncate domain on Account #58

Merged
merged 2 commits into from
Jan 31, 2025
Merged

Fix: Truncate domain on Account #58

merged 2 commits into from
Jan 31, 2025

Conversation

victorkl400
Copy link
Collaborator

Description

Truncate the domain if present to prevent UI breakage and ensure horizontal icons remain within the viewport

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the coding standards of this project
  • I have performed a self-review of my code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • New and existing integration tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have not added any vulnerable dependencies to my code

Screenshot

BEFORE

Screenshot 2025-01-30 at 10 06 13

AFTER

Screenshot 2025-01-30 at 10 05 40

@victorkl400 victorkl400 self-assigned this Jan 30, 2025
@@ -38,7 +38,7 @@ export const AccountSelector = ({
rounded="full"
/>
<Text fontSize={size} fontWeight="500">
{wallet?.domain ||
{humanDomain(wallet?.domain ?? '', 6, 4) ||
Copy link
Member

Choose a reason for hiding this comment

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

I was previously already doing it but with smaller names the output was kind of weird. Let me try this pr locally

Copy link
Member

Choose a reason for hiding this comment

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

Increased allowed letters to 11, 4

@Agilulfo1820 Agilulfo1820 merged commit 3bf66f1 into main Jan 31, 2025
4 checks passed
@Agilulfo1820 Agilulfo1820 deleted the fix/vns-display branch February 19, 2025 15:17
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