Skip to content

Commit

Permalink
ENG-3703 fix(1ui): always align link text in profile card left (#830)
Browse files Browse the repository at this point in the history
## Affected Packages

Apps

- [ ] portal

Packages

- [x] 1ui
- [ ] api
- [ ] protocol
- [ ] sdk

Tools

- [ ] tools

## Overview

When the external link was too long and had to be truncated, it was
aligning center instead of left.

## Screen Captures

If applicable, add screenshots or screen captures of your changes.

## Declaration

- [x] I hereby declare that I have abided by the rules and regulations
as outlined in the
[CONTRIBUTING.md](https://github.com/0xIntuition/intuition-ts/blob/main/CONTRIBUTING.md)
  • Loading branch information
Vitalsine85 authored Sep 11, 2024
1 parent a038ce8 commit 3a6f628
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/1ui/src/components/ProfileCard/ProfileCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ const ProfileCard = ({
Link
</Text>
<a href={externalLink} target="_blank" rel="noreferrer noopener">
<Trunctacular value={externalLink} maxStringLength={48} />
<Trunctacular
value={externalLink}
maxStringLength={48}
className="text-left"
/>
</a>
</div>
)}
Expand Down

0 comments on commit 3a6f628

Please sign in to comment.