feat: enhance training framework UI and responsiveness
- Updated app.css to improve layout and responsiveness for mobile and desktop views, including new styles for session slots and chips. - Modified TrainingUnitSectionsEditor to support a wider exercise grid for better usability. - Enhanced TrainingFrameworkProgramEditPage with improved slot management and mobile navigation features. - Introduced dynamic slot chip labels for better user interaction and clarity.
This commit is contained in:
1 parent
c4fbabd8f6
commit
69adf1fde0
3 files changed
+299
-123
No files matched your search
+103
-18
@@ -3012,7 +3012,7 @@ a.analysis-split__nav-item {
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
/* Horizontaler Überblick: äußerer Scroll‑Container (Zuverlässigkeit in Flex/Grid‑Eltern) */
|
||||
/* Horizontaler Überblick: äußerer Scroll‑Container (Desktop: breite Session‑Karten) */
|
||||
.framework-slots-board-outer {
|
||||
container-type: inline-size;
|
||||
width: 100%;
|
||||
@@ -3029,8 +3029,22 @@ a.analysis-split__nav-item {
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
||||
.framework-slots-board-outer--mobile-single {
|
||||
overflow-x: visible;
|
||||
scrollbar-gutter: auto;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
.framework-slots-board-outer--desktop {
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
|
||||
@media (max-width: 1023px) {
|
||||
.framework-slots-board-outer {
|
||||
.framework-slots-board-outer:not(.framework-slots-board-outer--mobile-single) {
|
||||
scrollbar-gutter: auto;
|
||||
}
|
||||
}
|
||||
@@ -3047,13 +3061,12 @@ a.analysis-split__nav-item {
|
||||
scroll-snap-type: x proximity;
|
||||
}
|
||||
|
||||
/* Kartenbreite an den Scroll-Container koppeln (100vw wäre oft breiter als .app-main → horizontales Wischen der ganzen Seite) */
|
||||
.framework-slots-board .framework-slot-card {
|
||||
flex: 0 0 min(300px, calc(100vw - 72px));
|
||||
width: min(300px, calc(100vw - 72px));
|
||||
min-width: min(300px, calc(100vw - 72px));
|
||||
height: min(520px, 72vh);
|
||||
max-height: min(520px, 72vh);
|
||||
.framework-slots-board--desktop-wide .framework-slot-card {
|
||||
flex: 0 0 min(760px, max(560px, calc(100cqw - 48px)));
|
||||
width: min(760px, max(560px, calc(100cqw - 48px)));
|
||||
min-width: min(760px, max(560px, calc(100cqw - 48px)));
|
||||
height: auto;
|
||||
max-height: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-bottom: 0;
|
||||
@@ -3063,10 +3076,87 @@ a.analysis-split__nav-item {
|
||||
scroll-snap-align: start;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.framework-slots-board .framework-slot-card {
|
||||
flex: 0 0 min(300px, calc(100cqw - 24px));
|
||||
width: min(300px, calc(100cqw - 24px));
|
||||
min-width: min(300px, calc(100cqw - 24px));
|
||||
|
||||
.framework-slots-board--desktop-wide .framework-slot-card__plan-editor {
|
||||
flex: 1;
|
||||
min-height: 240px;
|
||||
max-height: min(78vh, 1200px);
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
/* Ein Slot = nutzbare Bildschirmbreite; Chips oben/unten wechseln die Session */
|
||||
.framework-slot-mobile-panel {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.framework-slot-mobile-panel .framework-slot-card--mobile-single {
|
||||
flex: none;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
height: auto;
|
||||
max-height: none;
|
||||
overflow: visible;
|
||||
scroll-snap-align: unset;
|
||||
}
|
||||
|
||||
.framework-slot-mobile-panel .framework-slot-card__plan-editor {
|
||||
max-height: none;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.framework-slot-chips-bar {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
gap: 8px;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
padding: 8px 0 10px;
|
||||
margin-bottom: 2px;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.framework-slot-chips-bar--bottom {
|
||||
margin-bottom: 0;
|
||||
margin-top: 12px;
|
||||
padding-top: 6px;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.framework-slot-chip {
|
||||
flex: 0 0 auto;
|
||||
appearance: none;
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
padding: 8px 16px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--border2);
|
||||
background: var(--surface2);
|
||||
color: var(--text2);
|
||||
font-size: 0.86rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.25;
|
||||
max-width: 220px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.framework-slot-chip:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent-dark);
|
||||
}
|
||||
|
||||
.framework-slot-chip--active {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: var(--accent-text, #fff);
|
||||
}
|
||||
|
||||
.framework-slot-card__head {
|
||||
@@ -3295,11 +3385,6 @@ a.analysis-split__nav-item {
|
||||
}
|
||||
|
||||
@media (min-width: 900px) {
|
||||
.framework-slots-board .framework-slot-card {
|
||||
flex-basis: 300px;
|
||||
width: 300px;
|
||||
min-width: 300px;
|
||||
}
|
||||
.framework-slot-card__slot-actions {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
||||
Reference in new issue
Block a user