feat: enhance exercise selection and training unit management
- Updated ExercisePeekModal to support exercise variants, improving user experience when selecting exercises. - Enhanced ExercisePickerModal with multi-select functionality, allowing users to select multiple exercises at once. - Introduced drag-and-drop support for reordering training unit sections in TrainingUnitSectionsEditor, enhancing organization and usability. - Improved TrainingFrameworkProgramEditPage and TrainingPlanningPage to manage exercise selection and section movement across slots more effectively. - Added new CSS styles in app.css for better visual feedback during drag-and-drop actions and improved layout consistency.
This commit is contained in:
1 parent
354216cb4f
commit
2bfe67879f
6 files changed
+958
-411
No files matched your search
@@ -3462,6 +3462,57 @@ a.analysis-split__nav-item {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.tu-section-shell {
|
||||
contain: layout;
|
||||
}
|
||||
|
||||
.tu-section-dropband {
|
||||
height: 10px;
|
||||
margin: 0 2px 4px;
|
||||
border-radius: 6px;
|
||||
flex-shrink: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.tu-section-dropband--end {
|
||||
margin-top: 2px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.tu-section-dropband--active {
|
||||
background: color-mix(in srgb, var(--accent) 26%, transparent);
|
||||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 42%, transparent);
|
||||
}
|
||||
|
||||
.tu-sec-drag-grip {
|
||||
flex-shrink: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 4px;
|
||||
cursor: grab;
|
||||
color: var(--text3);
|
||||
user-select: none;
|
||||
touch-action: none;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.tu-sec-drag-grip:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.tu-item-append-drop {
|
||||
min-height: 16px;
|
||||
margin: 2px -2px 6px;
|
||||
border-radius: 6px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.tu-item-append-drop--active {
|
||||
outline: 2px dashed var(--accent);
|
||||
outline-offset: 1px;
|
||||
background: color-mix(in srgb, var(--accent) 10%, transparent);
|
||||
}
|
||||
|
||||
.framework-slot-card__head {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
Reference in new issue
Block a user