fix: Bei einem langen Formular war "Speichern" nicht erreichbar

Der Dialog wuchs mit seinem Inhalt und lief unten aus dem Bild. Scrollen ging
nicht – damit war der Knopf schlicht weg, und das Konto liess sich nicht mehr
speichern.

Jetzt bleibt der Dialog im Fenster: Kopf und Knopfleiste stehen fest, nur der
Inhalt dazwischen rollt.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Scarriffle
2026-09-07 14:39:08 +02:00
co-authored by Claude Opus 5
parent b69c383a72
commit cea238149b
3 changed files with 248 additions and 7 deletions
+14 -2
View File
@@ -695,10 +695,22 @@ td select { width: auto; min-width: 0; max-width: 100%; }
border-radius: var(--radius);
padding: var(--sp-5);
box-shadow: 0 12px 32px rgba(9, 12, 18, 0.28);
/* Ein langes Formular darf nicht unten aus dem Bild laufen: Der Dialog
bleibt im Fenster, nur sein Inhalt rollt. Kopf und Knopfleiste stehen
fest – sonst ist "Speichern" bei einem hohen Formular nicht erreichbar. */
display: flex; flex-direction: column;
max-height: calc(100vh - 2 * var(--sp-4));
min-height: 0;
}
.modal-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.modal-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); flex: none; }
.modal-head h2 { margin: 0; }
.modal-body { margin: 0 0 var(--sp-5); color: var(--muted); font-size: 0.9rem; }
.modal-body {
margin: 0 0 var(--sp-5); color: var(--muted); font-size: 0.9rem;
overflow-y: auto; min-height: 0;
/* Platz fuer den Fokusrahmen, den `overflow` sonst abschneidet. */
padding: 2px;
}
.modal > .btn-pair { flex: none; }
.icon-danger { color: var(--danger); }
/* Gefuellter Knopf fuer unwiderrufliche Schritte - der flache .btn.danger
geht in einem Dialog zu leicht unter. */