From ca7bd6898e81fa10af386cf0528c06a8c69f1b75 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 10 Feb 2025 23:26:33 +0100 Subject: [PATCH] Prevent horizontal scrollbar in snackbar --- .../core/components/snackbar/SnackbarWithDescription.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/core/components/snackbar/SnackbarWithDescription.tsx b/src/modules/core/components/snackbar/SnackbarWithDescription.tsx index ebf0c875..b10c70b5 100644 --- a/src/modules/core/components/snackbar/SnackbarWithDescription.tsx +++ b/src/modules/core/components/snackbar/SnackbarWithDescription.tsx @@ -16,7 +16,7 @@ import { awaitConfirmation } from '@/modules/core/utils/AwaitableDialog.tsx'; import { TranslationKey } from '@/Base.types.ts'; import { defaultPromiseErrorHandler } from '@/lib/DefaultPromiseErrorHandler.ts'; -const MAX_DESCRIPTION_LENGTH = 75; +const MAX_DESCRIPTION_LENGTH = 255; const SNACKBAR_VARIANT_TO_TRANSLATION_KEY: Record = { default: 'global.label.info', @@ -59,7 +59,7 @@ export const SnackbarWithDescription = memo( elevation={1} severity={severity} action={finalAction} - sx={{ minWidth: '100%' }} + sx={{ minWidth: '100%', wordBreak: 'break-word' }} onClose={() => closeSnackbar(id)} > {message}