Halte den Fuß des Bausteindialogs in schmalen Fenstern erreichbar
CI Feature / test (push) Successful in 1m6s
Deploy Test / test (push) Successful in 1m1s
Deploy Test / deploy (push) Successful in 33s

Der Inhaltsbereich des großen Dialogs wuchs über das Fenster hinaus; bei 900 px
(Vorschau unter dem Formular) lagen „Zur Seite“ und „Änderungen verwerfen“
außerhalb des sichtbaren Bereichs. Der Inhalt scrollt jetzt im Dialog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-11-20 12:37:13 +01:00
1 parent 0c6519be28
commit d4110b1d51
3 files changed
+7 -1

No files matched your search

+4 -1
View File
@@ -101,7 +101,10 @@ public static function slotBuilder(string $name = 'widget'): Builder
->modalCancelActionLabel('Änderungen verwerfen')
->closeModalByClickingAway(false)
->closeModalByEscaping(false)
->modalCloseButton(false))
->modalCloseButton(false)
// Eigener Scrollbereich: Sonst wächst der Inhalt über das Fenster und der Dialogfuß ist bei schmalen
// Fenstern (Vorschau unter dem Formular) nicht erreichbar.
->extraModalWindowAttributes(['class' => 'luf-baustein-dialog']))
->deleteAction(fn ($action) => $action->label('Entfernen')->tooltip('Widget aus diesem Platz entfernen')->requiresConfirmation()->modalHeading('Widget entfernen?')->modalDescription('Das Widget wird aus dem Entwurf entfernt. Gespeicherte Revisionen bleiben erhalten.')->modalSubmitActionLabel('Entfernen'))
->columnSpanFull();
}
@@ -43,6 +43,8 @@
.vw p { margin: 0; }
.vw [x-cloak] { display: none !important; }
.vw-ausgeblendet { display: none !important; }
.luf-baustein-dialog { max-height: 100vh; max-height: 100dvh; }
.luf-baustein-dialog > .fi-modal-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.vw-seitenkopf { display: grid; gap: 0.75rem; margin-bottom: 0.5rem; }
.vw-seiten-hinweis { max-width: 60rem; }
.vw-cms-kontext { display: grid; gap: 0.5rem; margin: 0.5rem 0 1rem; }
+1
View File
@@ -144,6 +144,7 @@ public function test_configuring_a_block_names_it_and_its_place_and_returns_to_t
$this->assertFalse($action->isModalClosedByEscaping());
$this->assertFalse($action->isModalClosedByClickingAway());
$this->assertFalse($action->hasModalCloseButton(), 'Ohne Schließen-Kreuz: Verlassen nur über „Zur Seite“ oder „Änderungen verwerfen“.');
$this->assertStringContainsString('luf-baustein-dialog', (string) $action->getExtraModalWindowAttributeBag(), 'Eigener Scrollbereich, damit der Dialogfuß erreichbar bleibt.');
}
public function test_a_design_error_from_the_page_layout_opens_the_failing_section(): void