refactor: enhance filtering logic and UI for ExercisesListPage
- Removed the countActiveFilterGroups function and replaced it with a more comprehensive filterChips implementation to manage active filters. - Improved the rendering of active filters with dynamic chips that allow users to remove individual filters. - Updated the UI to reflect the new filtering logic, enhancing user experience and interaction with the filter options. - Adjusted the layout and styling for better visibility and usability of the filter components.
This commit is contained in:
1 parent
0d4ad9a2c8
commit
2c831d6cea
2 files changed
+343
-114
No files matched your search
+91
-9
@@ -1586,16 +1586,98 @@ a.analysis-split__nav-item {
|
||||
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
.exercise-filter-level-row {
|
||||
grid-column: 1 / -1;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 12px;
|
||||
.exercise-filters-modal-grid--two {
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
}
|
||||
@media (max-width: 480px) {
|
||||
.exercise-filter-level-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.exercise-filter-chips-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.exercise-filter-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
max-width: 100%;
|
||||
padding: 5px 10px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--surface2);
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
color: var(--text1);
|
||||
text-align: left;
|
||||
}
|
||||
.exercise-filter-chip__text {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
max-width: min(260px, 88vw);
|
||||
}
|
||||
.exercise-filter-chip__x {
|
||||
flex-shrink: 0;
|
||||
opacity: 0.65;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
}
|
||||
.exercise-filter-section {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.exercise-filter-section--last {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.exercise-filter-section-title {
|
||||
margin: 0 0 10px;
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--text3);
|
||||
font-weight: 700;
|
||||
}
|
||||
.exercise-filter-skill-block {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 12px;
|
||||
background: var(--surface2);
|
||||
}
|
||||
.exercise-filter-skill-block > .form-label {
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.exercise-filter-skill-hint {
|
||||
margin: 10px 0 8px;
|
||||
font-size: 12px;
|
||||
color: var(--text3);
|
||||
line-height: 1.35;
|
||||
}
|
||||
.exercise-filter-skill-levels-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
.exercise-filter-skill-level-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
.exercise-filter-skill-level-caption {
|
||||
font-size: 11px;
|
||||
color: var(--text3);
|
||||
font-weight: 600;
|
||||
}
|
||||
.exercise-filter-level-select {
|
||||
width: 72px;
|
||||
padding: 6px 8px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.exercise-filter-skill-dash {
|
||||
padding-bottom: 8px;
|
||||
color: var(--text3);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Reifegradmodell-Admin: klare Schritte, responsives Raster */
|
||||
|
||||
Reference in new issue
Block a user