From 25fb18f2629d308961414664779367344a822760 Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Fri, 20 Dec 2024 14:38:37 +0100 Subject: [PATCH] fix: Use break-word for Snaps UI text wrapping --- ui/components/app/snaps/snap-ui-renderer/components/text.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/components/app/snaps/snap-ui-renderer/components/text.ts b/ui/components/app/snaps/snap-ui-renderer/components/text.ts index fe9194817ca3..e51b67e04311 100644 --- a/ui/components/app/snaps/snap-ui-renderer/components/text.ts +++ b/ui/components/app/snaps/snap-ui-renderer/components/text.ts @@ -41,7 +41,7 @@ export const text: UIComponentFactory = ({ props: { variant: element.props.size === 'sm' ? TextVariant.bodySm : TextVariant.bodyMd, - overflowWrap: OverflowWrap.Anywhere, + overflowWrap: OverflowWrap.BreakWord, color: getTextColor(), className: 'snap-ui-renderer__text', textAlign: element.props.alignment,