Enhance exercise selection and display features
Deploy Development / deploy (push) Successful in 42s
Test Suite / pytest-backend (push) Successful in 41s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 12s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m18s
Deploy Development / deploy (push) Successful in 42s
Test Suite / pytest-backend (push) Successful in 41s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 12s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m18s
- Introduced new CSS styles for exercise cards and selection sections, improving visual feedback for selected exercises. - Updated ExerciseListCard to support a new `selectionPinned` prop, allowing for a badge display on selected exercises. - Refactored selection handling in ExercisesListPageRoot to manage selected entries more effectively, replacing the previous Set-based approach. - Enhanced SaveSelectedExercisesAsModuleModal to support appending exercises to existing modules, improving module management capabilities. - Updated session state handling to include selected entries, ensuring persistence across sessions.
This commit is contained in:
1 parent
ef4dd93324
commit
14b005e9b8
6 files changed
+440
-138
No files matched your search
@@ -2949,6 +2949,45 @@ html.modal-scroll-locked .app-main {
|
||||
flex-shrink: 0;
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
.exercise-card--selection-pinned {
|
||||
border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
|
||||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
|
||||
}
|
||||
.exercise-card__selection-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
margin-left: 8px;
|
||||
padding: 2px 7px;
|
||||
border-radius: 999px;
|
||||
font-size: 0.68rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.02em;
|
||||
text-transform: uppercase;
|
||||
color: var(--accent-dark);
|
||||
background: var(--accent-soft);
|
||||
vertical-align: middle;
|
||||
}
|
||||
.exercises-selection-section {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.exercises-selection-section__head {
|
||||
margin-bottom: 0.65rem;
|
||||
}
|
||||
.exercises-selection-section__title {
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
color: var(--text1);
|
||||
}
|
||||
.exercises-selection-section__hint {
|
||||
margin: 4px 0 0;
|
||||
font-size: 0.85rem;
|
||||
color: var(--text3);
|
||||
line-height: 1.45;
|
||||
}
|
||||
.exercises-list-grid--selection {
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
.exercise-card-body-flex {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
@@ -2966,6 +3005,10 @@ html.modal-scroll-locked .app-main {
|
||||
font-size: 1.05rem;
|
||||
line-height: 1.3;
|
||||
font-weight: 700;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 4px 8px;
|
||||
}
|
||||
.exercise-card-title a {
|
||||
color: inherit;
|
||||
|
||||
Reference in new issue
Block a user