feat: enhance dashboard and exercises list UI with new styles and filtering options
Deploy Development / deploy (push) Successful in 37s
Test Suite / pytest-backend (push) Successful in 7s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 7s
Test Suite / playwright-tests (push) Successful in 23s
Deploy Development / deploy (push) Successful in 37s
Test Suite / pytest-backend (push) Successful in 7s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 7s
Test Suite / playwright-tests (push) Successful in 23s
- Added responsive styles for dashboard KPI cards and exercise search actions, improving layout on smaller screens. - Refactored the Dashboard component to streamline error handling and loading states for better user experience. - Updated ExercisesListPage to include new filtering options for user-created exercises, enhancing data relevance. - Improved overall CSS organization and introduced new classes for better styling consistency across components.
This commit is contained in:
1 parent
3bf0af001a
commit
40a3b4b8e6
3 files changed
+163
-67
No files matched your search
+65
-3
@@ -2706,6 +2706,21 @@ a.analysis-split__nav-item {
|
||||
gap: 10px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
.exercise-search-bar__actions--split {
|
||||
width: 100%;
|
||||
}
|
||||
.exercise-search-bar__actions-main {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.exercise-mine-toggle--active {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent-light);
|
||||
color: var(--accent-dark);
|
||||
font-weight: 600;
|
||||
}
|
||||
.exercise-filter-trigger {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -3607,13 +3622,11 @@ a.analysis-split__nav-item {
|
||||
margin: 0 0 10px;
|
||||
font-size: 0.9rem;
|
||||
color: var(--danger);
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.dashboard-phase0-kpis__loading {
|
||||
font-size: 0.9rem;
|
||||
margin: 0;
|
||||
grid-column: 1 / -1;
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
|
||||
.dashboard-kpi-card {
|
||||
@@ -3685,6 +3698,55 @@ a.analysis-split__nav-item {
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 1023px) {
|
||||
.dashboard-phase0-kpis {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
gap: 8px;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scroll-snap-type: x proximity;
|
||||
scrollbar-width: none;
|
||||
padding: 2px 0 4px;
|
||||
margin-left: calc(-1 * max(12px, env(safe-area-inset-left, 0px)));
|
||||
margin-right: calc(-1 * max(12px, env(safe-area-inset-right, 0px)));
|
||||
padding-left: max(12px, env(safe-area-inset-left, 0px));
|
||||
padding-right: max(12px, env(safe-area-inset-right, 0px));
|
||||
}
|
||||
.dashboard-phase0-kpis::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.dashboard-kpi-card {
|
||||
flex: 0 0 auto;
|
||||
scroll-snap-align: start;
|
||||
width: min(132px, 38vw);
|
||||
min-height: 0;
|
||||
padding: 10px 10px 8px;
|
||||
gap: 2px;
|
||||
}
|
||||
.dashboard-kpi-card__icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.dashboard-kpi-card__icon svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
.dashboard-kpi-card__value {
|
||||
font-size: 1.35rem;
|
||||
}
|
||||
.dashboard-kpi-card__label {
|
||||
font-size: 0.72rem;
|
||||
line-height: 1.25;
|
||||
}
|
||||
.dashboard-kpi-card__hint {
|
||||
font-size: 0.6rem;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard-training-preview-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
|
||||
|
||||
Reference in new issue
Block a user