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 Long Recipient Name in TxRecipientCard #1752

Open
helciofranco opened this issue Jan 2, 2025 · 0 comments
Open

Fix Long Recipient Name in TxRecipientCard #1752

helciofranco opened this issue Jan 2, 2025 · 0 comments
Assignees

Comments

@helciofranco
Copy link
Member

Long recipient names in the TxRecipientCard component are not truncated properly.
Let's update to display names in a single line for better readability and layout consistency.

Suggestion

  1. Apply CSS text-overflow: ellipsis for truncation.
  2. Add a tooltip to show the full text on hover if truncation occurs.

Tooltip Implementation reference

useEffect(() => {
if (!tooltip && amountRef.current) {
const amountEl = amountRef.current;
setIsTruncated(amountEl.scrollWidth > amountEl.clientWidth);
}
}, [tooltip]);

Evidence

📷 TxRecipientCard
Screenshot 2025-01-02 at 14 53 05
@FuelLabs FuelLabs deleted a comment Jan 2, 2025
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

No branches or pull requests

2 participants