Erkenne offene Dialoge für Strg+S und Esc richtig
CI Feature / test (push) Successful in 1m5s
Deploy Test / test (push) Successful in 1m1s
Deploy Test / deploy (push) Successful in 23s

Filament-Dialoge sind fest positioniert; offsetParent ist dort immer null, die
Prüfung hielt einen offenen Bausteindialog daher für geschlossen. Jetzt über
getClientRects(). Funktionszuordnung, CLAUDE.md und Cursor-Regel nennen die
CMS- und Webpräsenz-Bausteine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-11-20 12:25:32 +01:00
1 parent 30dd0f9eb8
commit 0c6519be28
5 files changed
+9 -8

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="if (! [...document.querySelectorAll('.fi-modal-window')].some(w => w.offsetParent !== null)) $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.getClientRects().length > 0)) $wire.save()">
@include('filament.verwaltung.kopf', [
'brot' => [['label' => 'Webpräsenz', 'href' => \App\Filament\Pages\Webpraesenz::getUrl()], $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.querySelectorAll('.fi-modal-window')].some(w => w.offsetParent !== null)) $wire.closeAbschnitt()">
<div class="vw vw-cms-kontext" x-data x-on:keydown.window.escape="if (! [...document.querySelectorAll('.fi-modal-window')].some(w => w.getClientRects().length > 0)) $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>
@@ -28,7 +28,7 @@
$mehr = $offen ? [['label' => 'Menüänderungen verwerfen …', 'wire' => "askConfirmation('verwerfen')", 'hinweis' => 'Alle Menüs kehren zum gespeicherten Stand zurück.', 'gefahr' => true]] : [];
$anzahlSeiten = \App\Domain\Cms\Page::query()->count();
@endphp
<div class="vw vw-seitenkopf" x-data x-on:keydown.window.ctrl.s.prevent="if (! document.querySelector('.vw-dialog') && ! [...document.querySelectorAll('.fi-modal-window')].some(w => w.offsetParent !== null)) $wire.speichern()">
<div class="vw vw-seitenkopf" x-data x-on:keydown.window.ctrl.s.prevent="if (! document.querySelector('.vw-dialog') && ! [...document.querySelectorAll('.fi-modal-window')].some(w => w.getClientRects().length > 0)) $wire.speichern()">
@include('filament.verwaltung.kopf', [
'brot' => ['Website', 'Webpräsenz'],
'titel' => 'Webpräsenz',