Refactor modal components to use FormModalOverlay for improved consistency and functionality
Deploy Development / deploy (push) Successful in 42s
Test Suite / pytest-backend (push) Successful in 38s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m9s

- Replaced div elements with FormModalOverlay in SaveExercisesAsModuleModal, TrainingPlanningUnitFormModal, and TrainingPublishToFrameworkModal for a unified modal structure.
- Enhanced modal styling and behavior, including adjustments for responsiveness and accessibility.
- Introduced new CSS rules to manage overflow and scrolling behavior when modals are active, improving user experience across devices.
This commit is contained in:
Lars committed 2026-05-19 10:47:44 +02:00
1 parent c9175bd2fd
commit 295c7e7efc
6 files changed
+173 -6

No files matched your search

+48
View File
@@ -1231,21 +1231,52 @@ a.analysis-split__nav-item {
}
/* Form-Modale: Overlay + Panel (Desktop zentriert, Mobile Vollbild) */
html.modal-scroll-locked {
overflow: hidden;
overscroll-behavior: none;
height: 100%;
}
html.modal-scroll-locked body {
overflow: hidden !important;
overscroll-behavior: none;
}
html.modal-scroll-locked .app-shell,
html.modal-scroll-locked .app-shell__column {
overflow: hidden;
}
html.modal-scroll-locked .app-main {
overflow: hidden !important;
overscroll-behavior: none;
}
.modal-overlay--form {
position: fixed;
inset: 0;
z-index: 1000;
background: rgba(0, 0, 0, 0.5);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1rem;
overflow: hidden;
overscroll-behavior: none;
touch-action: none;
box-sizing: border-box;
width: 100%;
max-width: 100vw;
}
.modal-overlay--form.modal-overlay--raised {
z-index: 1100;
}
.modal-overlay__focus-catcher {
position: absolute;
width: 0;
height: 0;
overflow: hidden;
opacity: 0;
pointer-events: none;
}
.modal-panel--form {
display: flex;
flex-direction: column;
@@ -1259,6 +1290,10 @@ a.analysis-split__nav-item {
min-height: 0;
min-width: 0;
box-sizing: border-box;
touch-action: manipulation;
flex: 0 1 auto;
margin: auto;
align-self: center;
}
.modal-panel--form.modal-panel--narrow {
max-width: min(560px, 100%);
@@ -1295,7 +1330,9 @@ a.analysis-split__nav-item {
min-width: 0;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
overscroll-behavior-x: none;
touch-action: pan-y;
-webkit-overflow-scrolling: touch;
padding-bottom: 4px;
}
@@ -1309,13 +1346,24 @@ a.analysis-split__nav-item {
.modal-overlay--form {
padding: 0;
align-items: stretch;
justify-content: stretch;
width: 100vw;
max-width: 100vw;
left: 0;
right: 0;
}
.modal-panel--form {
max-width: 100%;
width: 100%;
max-height: 100dvh;
height: 100dvh;
border-radius: 0;
margin: 0;
flex: 1 1 auto;
align-self: stretch;
padding: 12px;
padding-left: max(12px, env(safe-area-inset-left, 0px));
padding-right: max(12px, env(safe-area-inset-right, 0px));
padding-top: max(12px, env(safe-area-inset-top, 0px));
padding-bottom: max(0px, env(safe-area-inset-bottom, 0px));
}