Enhance full-page editor layout and integrate form editor actions
Deploy Development / deploy (push) Successful in 41s
Test Suite / pytest-backend (push) Successful in 37s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Failing after 6m4s

- Updated CSS styles for the full-page editor, introducing a sticky header and mobile dock for improved navigation.
- Refactored App component to include FormEditorActionsProvider and FormEditorBottomSlot for better form handling.
- Simplified TrainingUnitFormShell by removing the FormActionBar, streamlining the form structure and enhancing usability.
This commit is contained in:
Lars committed 2026-05-19 11:18:54 +02:00
1 parent 734d943d73
commit 6a9351874f
6 files changed
+253 -137

No files matched your search

+74 -48
View File
@@ -1450,61 +1450,87 @@ html.modal-scroll-locked .app-main {
padding-right: var(--page-pad, 16px);
}
/* Einheiten-Editor (Vollseite): Scroll im Formular, Action Bar am unteren Formularrand */
.app-main:has(.planning-unit-edit-host) {
overflow: hidden;
display: flex;
flex-direction: column;
/* Vollseiten-Editor: Kopfzeile (Desktop) + Mobile-Dock statt Bottom-Nav */
.page-form-editor__header {
position: sticky;
top: 0;
z-index: 12;
background: var(--bg);
padding-bottom: 0.75rem;
margin-bottom: 0.75rem;
border-bottom: 1px solid var(--border);
}
.planning-layout:has(.planning-unit-edit-host) {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
.page-form-editor__intro {
min-width: 0;
}
.planning-layout__main:has(.planning-unit-edit-host) {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
.page-form-editor__back {
display: inline-block;
margin-bottom: 0.35rem;
color: var(--accent-dark);
font-weight: 600;
font-size: 0.9rem;
text-decoration: none;
}
.planning-unit-edit-host {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
.page-form-editor__title {
margin: 0;
font-size: clamp(1.15rem, 4vw, 1.45rem);
line-height: 1.25;
}
.planning-unit-edit-host__body {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
.page-form-editor__header-actions {
display: none;
}
.page-form-shell--fill {
flex: 1 1 auto;
min-height: 0;
overflow: hidden;
}
.page-form-shell--fill .page-form-shell__scroll {
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
overscroll-behavior-x: none;
touch-action: pan-y;
-webkit-overflow-scrolling: touch;
padding-bottom: 4px;
}
.page-form-shell--fill .form-action-bar {
.page-form-editor__header-actions .form-action-bar {
position: static;
margin-top: auto;
flex-shrink: 0;
border: none;
box-shadow: none;
padding: 0;
margin: 0;
background: transparent;
}
.form-action-bar--page {
flex-shrink: 0;
.form-editor-mobile-dock {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 20;
width: auto;
max-width: none;
background: var(--surface);
border-top: 1px solid var(--border);
box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
padding: var(--nav-pad-top, 8px) max(10px, env(safe-area-inset-right, 0px))
env(safe-area-inset-bottom, 0px) max(10px, env(safe-area-inset-left, 0px));
box-sizing: border-box;
}
.form-editor-mobile-dock .form-action-bar {
position: static;
border: none;
box-shadow: none;
margin: 0;
}
@media (min-width: 1024px) {
.page-form-editor__header {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
gap: 12px 16px;
}
.page-form-editor__header-actions {
display: block;
flex: 1 1 320px;
min-width: min(100%, 420px);
}
.form-editor-mobile-dock {
display: none !important;
}
}
@media (max-width: 1023px) {
.app-shell__column:has(.form-editor-mobile-dock) .app-main {
padding-bottom: calc(52px + var(--nav-pad-top, 8px) + env(safe-area-inset-bottom, 0px) + 12px);
}
}
/* Einstellungen: gleiche Split-Struktur wie Analyse/Admin */