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
@@ -17,6 +17,7 @@ export default function TrainingUnitSectionsEditor({
|
||||
showExecutionExtras = false,
|
||||
heading = 'Abschnitte & Übungen',
|
||||
hideHeading = false,
|
||||
wideExerciseGrid = false,
|
||||
}) {
|
||||
const ensure = (prev) =>
|
||||
prev && prev.length ? prev : [defaultSection()]
|
||||
@@ -233,7 +234,9 @@ export default function TrainingUnitSectionsEditor({
|
||||
key={`ex-${sIdx}-${iIdx}`}
|
||||
style={{
|
||||
display: 'grid',
|
||||
gridTemplateColumns: '28px minmax(0, 1fr) minmax(0, 64px) 36px',
|
||||
gridTemplateColumns: wideExerciseGrid
|
||||
? '32px minmax(0, 1fr) minmax(96px, 220px) 44px'
|
||||
: '28px minmax(0, 1fr) minmax(0, 64px) 36px',
|
||||
gap: '6px',
|
||||
alignItems: 'start',
|
||||
marginTop: '0.65rem',
|
||||
|
||||
Reference in new issue
Block a user