feat(web): show live download state on rows (#264)
This commit is contained in:
+45
-2
@@ -832,6 +832,36 @@ body {
|
||||
border-color: oklch(from var(--signal-warn) l c h / 55%);
|
||||
}
|
||||
|
||||
/* §9.8: live download state on the row that owns the item. Fixed width so a
|
||||
percentage ticking from 9% to 10%, or a phase word replacing it, never
|
||||
reflows the chips beside it — sized to the longest phase word since the
|
||||
set of values is fixed, unlike the subtitle chip's configured language set. */
|
||||
.dl-chip {
|
||||
min-width: 7ch;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.dl-chip[data-dl-phase="downloading"] {
|
||||
color: var(--status-airing);
|
||||
border-color: oklch(from var(--status-airing) l c h / 45%);
|
||||
}
|
||||
|
||||
.dl-chip[data-dl-phase="stalled"] {
|
||||
color: var(--signal-warn);
|
||||
border-color: oklch(from var(--signal-warn) l c h / 55%);
|
||||
}
|
||||
|
||||
.dl-chip[data-dl-phase="errored"] {
|
||||
color: var(--signal-fault);
|
||||
border-color: oklch(from var(--signal-fault) l c h / 55%);
|
||||
}
|
||||
|
||||
.dl-chip[data-dl-phase="seeding"] {
|
||||
color: var(--signal-ok);
|
||||
border-color: oklch(from var(--signal-ok) l c h / 45%);
|
||||
}
|
||||
|
||||
/* library status ramp (§4.2): violet while activity is live, green once
|
||||
everything wanted is on disk, amber for a grabbable gap; waiting is
|
||||
between seasons with nothing to do, so it stays neutral */
|
||||
@@ -2256,6 +2286,14 @@ body {
|
||||
flex-basis: 100%;
|
||||
}
|
||||
|
||||
/* §9.8: only the active-grab percentage survives at phone width — stalled,
|
||||
errored and seeding shed like any other secondary chip. Covers the movie
|
||||
row and the season row; the episode row's own rule above does the same
|
||||
for .ep-chips. */
|
||||
.dl-chip:not([data-dl-phase="downloading"]) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* the season name shrinks to its tag so the head keeps fitting beside the
|
||||
controls; the long form has nowhere to go on a phone */
|
||||
.season-name-long {
|
||||
@@ -2295,8 +2333,13 @@ body {
|
||||
|
||||
/* the state chip stays, and so does a flag — a vanished episode is a
|
||||
conflict, not an attribute. Resolution, language and the waived-rule
|
||||
chip go; they are what a wide screen is for. */
|
||||
.ep-chips .chip:not([data-movie-state]):not([data-flag]):not(.subs-chip) {
|
||||
chip go; they are what a wide screen is for. A live downloading
|
||||
percentage stays too (§9.8) — everything else the download chip can
|
||||
say is what a wide screen is for. */
|
||||
.ep-chips
|
||||
.chip:not([data-movie-state]):not([data-flag]):not(.subs-chip):not(
|
||||
.dl-chip[data-dl-phase="downloading"]
|
||||
) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user