Skip to content

Commit

Permalink
fix truncation using css only
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhanraj30 committed Jan 8, 2025
1 parent a6939c0 commit 0c0fe35
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ export const TxRecipientCard: TxRecipientCardComponent = ({
};
}, [name]);

const truncatedName = name.length > 15 ? `${name.slice(0, 15)}...` : name;

return (
<Card
css={styles.root}
Expand Down Expand Up @@ -134,10 +132,10 @@ export const TxRecipientCard: TxRecipientCardComponent = ({
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
overflow: 'hidden',
maxWidth: '200px',
maxWidth: '100px',
}}
>
{truncatedName}
{name}
</div>
</Tooltip>
</Heading>
Expand Down

0 comments on commit 0c0fe35

Please sign in to comment.