Skip to content

Commit

Permalink
fix: 🐞 display of tokenCTA with long wording (#8148)
Browse files Browse the repository at this point in the history
  • Loading branch information
themooneer authored Oct 18, 2024
1 parent 0383f16 commit 5d7e67e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/flat-rings-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

Fix long wording display on button inside a 500px width modal
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,13 @@ export const StepChooseCurrencyFooter = ({
{isToken ? (
<Box horizontal>
{parentCurrency ? (
<Button ml={2} primary onClick={onTokenCta} data-testid="modal-continue-button">
<Button
ml={2}
primary
onClick={onTokenCta}
data-testid="modal-continue-button"
style={{ wordBreak: "break-word", maxWidth: "170px" }}
>
{parentTokenAccount
? t("addAccounts.cta.receive")
: t("addAccounts.cta.addAccountName", {
Expand Down

0 comments on commit 5d7e67e

Please sign in to comment.