feat(training-units): add compact legend and module styling in Training Unit Sections Editor
Deploy Development / deploy (push) Successful in 40s
Test Suite / pytest-backend (push) Successful in 36s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 12s
Test Suite / playwright-tests (push) Successful in 56s
Deploy Development / deploy (push) Successful in 40s
Test Suite / pytest-backend (push) Successful in 36s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 12s
Test Suite / playwright-tests (push) Successful in 56s
- Introduced new CSS styles for compact module display, enhancing the visual structure of training unit sections. - Implemented functionality to conditionally render module tags and borders based on the selected UX mode. - Enhanced the section module legend model to aggregate and display module information effectively. - Improved the rendering logic to support both compact and standard views, ensuring a flexible user experience. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
e96951728d
commit
05042ee9ec
3 files changed
+235
-5
No files matched your search
@@ -5402,6 +5402,103 @@ a.analysis-split__nav-item {
|
||||
inset 10px 0 0 color-mix(in srgb, var(--accent) 14%, transparent);
|
||||
}
|
||||
|
||||
/* Kompakt: Modulfarbe über CSS-Variable --tu-mod-border (pro Zeile gesetzt). */
|
||||
.training-unit-sections-editor .tu-item-row--from-module-soft.tu-item-row--exercise,
|
||||
.training-unit-sections-editor .tu-item-row--from-module-soft.tu-item-row--note:not(.tu-item-row--separator-note) {
|
||||
border-left: 4px solid var(--tu-mod-border, var(--accent));
|
||||
padding-left: 0.62rem;
|
||||
box-shadow:
|
||||
0 1px 0 rgba(255, 255, 255, 0.52) inset,
|
||||
0 2px 12px rgba(15, 23, 42, 0.05);
|
||||
}
|
||||
|
||||
.tu-planning-mod-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
flex: 0 1 auto;
|
||||
max-width: 100%;
|
||||
margin: 0;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid color-mix(in srgb, var(--border2) 70%, transparent);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.35;
|
||||
color: var(--text1);
|
||||
}
|
||||
|
||||
.tu-planning-mod-tag__dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.tu-planning-mod-tag__text {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tu-section-mod-legend {
|
||||
margin-top: 0.75rem;
|
||||
padding: 0.5rem 0.62rem;
|
||||
border-radius: 11px;
|
||||
border: 1px solid color-mix(in srgb, var(--border2) 80%, transparent);
|
||||
background: color-mix(in srgb, var(--surface) 92%, transparent);
|
||||
}
|
||||
|
||||
.tu-section-mod-legend__caption {
|
||||
font-size: 0.65rem;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--text3);
|
||||
margin-bottom: 0.42rem;
|
||||
}
|
||||
|
||||
.tu-section-mod-legend__list {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.42rem 0.72rem;
|
||||
}
|
||||
|
||||
.tu-section-mod-legend__item {
|
||||
display: inline-flex;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
flex: 1 1 200px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.tu-section-mod-legend__swatch {
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
border-radius: 3px;
|
||||
flex-shrink: 0;
|
||||
margin-top: 0.26rem;
|
||||
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
.tu-section-mod-legend__title {
|
||||
display: block;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.35;
|
||||
color: var(--text1);
|
||||
}
|
||||
|
||||
.tu-section-mod-legend__meta {
|
||||
display: block;
|
||||
font-size: 0.72rem;
|
||||
line-height: 1.42;
|
||||
color: var(--text3);
|
||||
}
|
||||
|
||||
.tu-item-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
Reference in new issue
Block a user