Replace study lesson expanding cards with master-detail drill-down; v1.1.51
Publish Container / docker (push) Successful in 13m15s
Publish Container / docker (push) Successful in 13m15s
Studies section now uses a three-level navigation: study list → study detail with compact sortable lesson rows → individual lesson editor. Eliminates the 40+ expanding AdminCollapsibleCard items for lessons, replacing them with a compact table (drag handle, reference, title, live/draft status, edit/preview/ delete per row) and a focused lesson editor opened by clicking Edit. Prev/Next navigation between lessons added. BsbFetchButton extracted as a standalone component for the inline lesson editor. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
e593031d0d
commit
14665d06b5
3 files changed
+437
-223
No files matched your search
+160
@@ -6122,6 +6122,166 @@
|
||||
border-color: rgba(224, 92, 92, 0.4);
|
||||
}
|
||||
|
||||
/* ── Studies master-detail ── */
|
||||
|
||||
.study-program-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.375rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.study-program-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 0.875rem 1rem;
|
||||
background: var(--admin-card-bg);
|
||||
border: 1px solid var(--admin-card-border);
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
color: var(--admin-text);
|
||||
font-family: var(--brand-font-body);
|
||||
transition: border-color 0.15s, background 0.15s;
|
||||
}
|
||||
.study-program-row:hover {
|
||||
border-color: rgba(201, 168, 76, 0.5);
|
||||
background: rgba(201, 168, 76, 0.04);
|
||||
}
|
||||
.study-program-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.2rem;
|
||||
}
|
||||
.study-program-info strong { font-size: 0.95rem; color: var(--admin-heading); }
|
||||
.study-program-info span { font-size: 0.78rem; color: var(--admin-muted); }
|
||||
.study-program-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
font-size: 0.8rem;
|
||||
color: var(--admin-muted);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.study-status-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.15rem 0.55rem;
|
||||
border-radius: 100px;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.study-status-pill.active { background: rgba(122, 191, 122, 0.15); color: #7abf7a; }
|
||||
.study-status-pill.planned { background: rgba(201, 168, 76, 0.15); color: var(--brand-gold); }
|
||||
|
||||
.study-drill-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1.25rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.study-drill-header h2 { margin: 0; font-size: 1.15rem; }
|
||||
|
||||
.study-back-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--brand-gold);
|
||||
font-family: var(--brand-font-body);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
padding: 0.3rem 0;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
.study-back-btn:hover { opacity: 0.75; }
|
||||
|
||||
.study-lesson-list-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0 0.75rem 0.4rem;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.07em;
|
||||
text-transform: uppercase;
|
||||
color: var(--admin-muted);
|
||||
border-bottom: 1px solid var(--admin-card-border);
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.study-lesson-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.6rem 0.75rem;
|
||||
border-bottom: 1px solid var(--admin-card-border);
|
||||
transition: background 0.12s;
|
||||
}
|
||||
.study-lesson-row:hover { background: rgba(201, 168, 76, 0.04); }
|
||||
|
||||
.study-lesson-drag {
|
||||
cursor: grab;
|
||||
color: var(--admin-muted);
|
||||
font-size: 1rem;
|
||||
padding: 0 0.1rem;
|
||||
width: 20px;
|
||||
text-align: center;
|
||||
flex-shrink: 0;
|
||||
user-select: none;
|
||||
}
|
||||
.study-lesson-drag:active { cursor: grabbing; }
|
||||
|
||||
.study-lesson-ref {
|
||||
width: 80px;
|
||||
flex-shrink: 0;
|
||||
font-size: 0.82rem;
|
||||
color: var(--admin-muted);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.study-lesson-title {
|
||||
flex: 1;
|
||||
font-size: 0.88rem;
|
||||
color: var(--admin-text);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.study-lesson-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.12rem 0.5rem;
|
||||
border-radius: 100px;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
flex-shrink: 0;
|
||||
width: 48px;
|
||||
justify-content: center;
|
||||
}
|
||||
.study-lesson-pill.live { background: rgba(122, 191, 122, 0.15); color: #7abf7a; }
|
||||
.study-lesson-pill.draft { background: rgba(201, 168, 76, 0.1); color: var(--brand-gold); }
|
||||
|
||||
.study-lesson-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.btn-admin-apply {
|
||||
background: transparent;
|
||||
color: var(--brand-gold);
|
||||
|
||||
Reference in new issue
Block a user