From 11aec57049ca7fe21e19c3195886e3f6f9aed3ab Mon Sep 17 00:00:00 2001 From: robinvandermolen Date: Wed, 25 Sep 2024 15:59:32 +0200 Subject: [PATCH] :bug: [#4636] Preventing large values to breaking the table --- src/components/builder/i18n.tsx | 5 ++++- src/components/builder/values/i18n.tsx | 14 ++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/components/builder/i18n.tsx b/src/components/builder/i18n.tsx index 767ca12d..2f98844e 100644 --- a/src/components/builder/i18n.tsx +++ b/src/components/builder/i18n.tsx @@ -122,7 +122,10 @@ export function ComponentTranslations({ -
+
{(values?.[property] || '-') as string}
diff --git a/src/components/builder/values/i18n.tsx b/src/components/builder/values/i18n.tsx index 64f6e62d..43133cc2 100644 --- a/src/components/builder/values/i18n.tsx +++ b/src/components/builder/values/i18n.tsx @@ -45,10 +45,14 @@ export function ValuesTranslations({name, withOptionDescription}: ValuesTrans <> - {label} + + {label} + -
{value || '-'}
+
+ {value || '-'} +
({name, withOptionDescription}: ValuesTrans description="Label for option description location" defaultMessage="Option description ()" values={{ - option: () => {value || '-'}, + option: () => {value || '-'}, }} /> -
{description || '-'}
+
+ {description || '-'} +