Mache Gestaltungsfehler sichtbar und schließe stille Verlustwege im Baustein

- Bausteindialog ohne Schließen-Kreuz: Verlassen nur über „Zur Seite“ oder „Änderungen verwerfen“.
- Strg+S und Esc wirken nicht, solange ein Dialog offen ist.
- Ein Raster- oder Gestaltungsfehler öffnet den betroffenen Abschnitt (CMS-12).
- Nachtrag in Abnahme Teil B: Zeitfenster der Knopffarben-Regel berichtigt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-11-20 11:48:11 +01:00
1 parent 77ebb0c1d5
commit bc6e4ec7ad
5 files changed
+79 -5

No files matched your search

@@ -27,7 +27,7 @@
$titel = $neueste?->contentTitle() ?: $seite->path;
$anzahlRevisionen = $seite->revisions()->count();
@endphp
<div class="vw vw-seitenkopf" x-data x-on:keydown.window.ctrl.s.prevent="$wire.save()">
<div class="vw vw-seitenkopf" x-data x-on:keydown.window.ctrl.s.prevent="if (! [...document.querySelectorAll('.fi-modal-window')].some(w => w.offsetParent !== null)) $wire.save()">
@include('filament.verwaltung.kopf', [
'brot' => [['label' => 'Seiten', 'href' => \App\Filament\Resources\Pages\PageResource::getUrl('index')], $seite->path],
'titel' => $titel,
@@ -63,7 +63,7 @@
$abschnittsZustand = $this->data['sections'][$abschnittSchluessel] ?? [];
$rasterKurz = \App\Domain\Cms\Sections\SectionLayouts::short(\App\Domain\Cms\Sections\SectionLayouts::has($abschnittsZustand['layout'] ?? null) ? $abschnittsZustand['layout'] : \App\Domain\Cms\Sections\SectionLayouts::DEFAULT);
@endphp
<div class="vw vw-cms-kontext" x-data x-on:keydown.window.escape="if (! document.querySelector('.fi-modal-window')) $wire.closeAbschnitt()">
<div class="vw vw-cms-kontext" x-data x-on:keydown.window.escape="if (! [...document.querySelectorAll('.fi-modal-window')].some(w => w.offsetParent !== null)) $wire.closeAbschnitt()">
<button type="button" class="vw-link vw-kopf-zurueck" wire:click="closeAbschnitt">@include('filament.verwaltung.icon', ['name' => 'zurueck'])Zur Seite</button>
<h2>Abschnitt gestalten</h2>
<p class="vw-kopf-typ">Abschnitt {{ $this->abschnitt + 1 }} · Raster {{ $rasterKurz }}</p>