From e261b71be69bcb77ab14bcb4206eb0dd0dd43799 Mon Sep 17 00:00:00 2001 From: Alexander Reifschneider <alexander.reifschneider@mgm-tp.com> Date: Fri, 28 Mar 2025 09:17:20 +0100 Subject: [PATCH] OZG-7871 Fix multi line mat error --- .../apps/alfa/src/styles/material/_formfield.scss | 11 +++++++++++ .../ui/editor/date-editor/date-editor.component.html | 2 +- .../wiedervorlage-form.component.scss | 4 ---- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/alfa-client/apps/alfa/src/styles/material/_formfield.scss b/alfa-client/apps/alfa/src/styles/material/_formfield.scss index ee22634bf4..db836eea09 100644 --- a/alfa-client/apps/alfa/src/styles/material/_formfield.scss +++ b/alfa-client/apps/alfa/src/styles/material/_formfield.scss @@ -58,3 +58,14 @@ body.dark { --mdc-filled-text-field-disabled-active-indicator-color: theme('colors.error'); } } +.mat-mdc-form-field { + @apply w-full self-start; + + .mat-mdc-form-field-subscript-wrapper { + @apply flex; + + .mat-mdc-form-field-error-wrapper { + @apply static; + } + } +} diff --git a/alfa-client/libs/ui/src/lib/ui/editor/date-editor/date-editor.component.html b/alfa-client/libs/ui/src/lib/ui/editor/date-editor/date-editor.component.html index 3a5337cbab..1693131b73 100644 --- a/alfa-client/libs/ui/src/lib/ui/editor/date-editor/date-editor.component.html +++ b/alfa-client/libs/ui/src/lib/ui/editor/date-editor/date-editor.component.html @@ -23,7 +23,7 @@ unter der Lizenz sind dem Lizenztext zu entnehmen. --> -<mat-form-field class="max-w-48"> +<mat-form-field class="max-w-56"> <mat-label>{{ label }}</mat-label> <input matInput diff --git a/alfa-client/libs/wiedervorlage/src/lib/wiedervorlage-page-container/wiedervorlage-page/wiedervorlage-form/wiedervorlage-form.component.scss b/alfa-client/libs/wiedervorlage/src/lib/wiedervorlage-page-container/wiedervorlage-page/wiedervorlage-form/wiedervorlage-form.component.scss index 06bdf88ffc..d220538245 100644 --- a/alfa-client/libs/wiedervorlage/src/lib/wiedervorlage-page-container/wiedervorlage-page/wiedervorlage-form/wiedervorlage-form.component.scss +++ b/alfa-client/libs/wiedervorlage/src/lib/wiedervorlage-page-container/wiedervorlage-page/wiedervorlage-form/wiedervorlage-form.component.scss @@ -26,10 +26,6 @@ flex-direction: column; max-width: 560px; - .date { - max-width: 200px; - } - .submit-button { margin: 16px 0; } -- GitLab