Skip to content

Commit

Permalink
fix: add word-wrapping in the network url (#1469)
Browse files Browse the repository at this point in the history
- Closes #1458

---

| 📷  Demo |
| --- |
| <img width="374" alt="Screenshot 2024-09-10 at 16 12 33"
src="https://github.com/user-attachments/assets/dc62f4f7-3d32-4ca0-b2a6-6d3b60202e21">
|
  • Loading branch information
helciofranco authored and arthurgeron committed Sep 12, 2024
1 parent 63f6962 commit bd0a2e3
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/fair-berries-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels-wallet": patch
---

Fix long network URLs breaking layout by enabling word wrapping.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@
"elliptic@>=4.0.0 <=6.5.6": ">=6.5.7",
"elliptic@>=2.0.0 <=6.5.6": ">=6.5.7",
"elliptic@>=5.2.1 <=6.5.6": ">=6.5.7",
"micromatch@<4.0.8": ">=4.0.8"
"micromatch@<4.0.8": ">=4.0.8",
"send@<0.19.0": ">=0.19.0",
"serve-static@<1.16.0": ">=1.16.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export function NetworkReviewCard({
</Card.Header>
<Card.Body css={styles.cardContentSection}>
<Text as="h2">{name}</Text>
<Text fontSize="sm">{url}</Text>
<Text fontSize="sm" css={styles.url}>
{url}
</Text>
</Card.Body>
</MotionCard>
);
Expand All @@ -46,6 +48,9 @@ const styles = {
height: '$6',
},
}),
url: cssObj({
wordWrap: 'break-word',
}),
cardContentSection: cssObj({
py: '$2',
}),
Expand Down
22 changes: 12 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bd0a2e3

Please sign in to comment.