From 0c9c99de08a9254833439c82f9a53adb7fd27596 Mon Sep 17 00:00:00 2001 From: henrikmv Date: Fri, 4 Oct 2024 11:55:18 +0200 Subject: [PATCH 1/2] fix: make arrow size static --- .../common/ChangelogTable/ChangelogChangeCell.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/core_modules/capture-core/components/WidgetsChangelog/common/ChangelogTable/ChangelogChangeCell.js b/src/core_modules/capture-core/components/WidgetsChangelog/common/ChangelogTable/ChangelogChangeCell.js index e5dbef266a..436b47c16b 100644 --- a/src/core_modules/capture-core/components/WidgetsChangelog/common/ChangelogTable/ChangelogChangeCell.js +++ b/src/core_modules/capture-core/components/WidgetsChangelog/common/ChangelogTable/ChangelogChangeCell.js @@ -22,7 +22,10 @@ const styles = { container: { display: 'flex', alignItems: 'center', - gap: spacers.dp4, + gap: spacers.dp8, + wordWrap: 'break-word', + hyphens: 'auto', + textAlign: 'justify', }, previousValue: { color: colors.grey700, @@ -35,7 +38,7 @@ const styles = { const Updated = ({ previousValue, currentValue, classes }) => (
{previousValue} - + {currentValue}
); @@ -50,7 +53,7 @@ const Created = ({ currentValue, classes }) => ( const Deleted = ({ previousValue, classes }) => (
{previousValue} - + {i18n.t('Deleted')}
); From 2c17cdbbd173cd1ed50e6d821ffba881ff06e8a8 Mon Sep 17 00:00:00 2001 From: henrikmv Date: Mon, 7 Oct 2024 15:17:19 +0200 Subject: [PATCH 2/2] fix: revert changes to text --- .../common/ChangelogTable/ChangelogChangeCell.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core_modules/capture-core/components/WidgetsChangelog/common/ChangelogTable/ChangelogChangeCell.js b/src/core_modules/capture-core/components/WidgetsChangelog/common/ChangelogTable/ChangelogChangeCell.js index 436b47c16b..1ec493edff 100644 --- a/src/core_modules/capture-core/components/WidgetsChangelog/common/ChangelogTable/ChangelogChangeCell.js +++ b/src/core_modules/capture-core/components/WidgetsChangelog/common/ChangelogTable/ChangelogChangeCell.js @@ -22,10 +22,7 @@ const styles = { container: { display: 'flex', alignItems: 'center', - gap: spacers.dp8, - wordWrap: 'break-word', - hyphens: 'auto', - textAlign: 'justify', + gap: spacers.dp4, }, previousValue: { color: colors.grey700,