fix(web): drop the subtitles panel below the episode row
The row and its disclosed panel were siblings in one wrapping flex line, which only stacked them by accident of flex-basis: 100%. At phone width the row is told not to wrap so the title truncates instead of pushing the controls down — and the panel then had nowhere to go but beside the episode. The row is now its own strip, .episode-line, with the panel a block under it. Same pairing the movie file row already uses.
This commit is contained in:
+10
-4
@@ -1694,14 +1694,20 @@ body {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
/* the row is a strip; the disclosed subtitles panel is a block under it.
|
||||
Two boxes, not one wrapping line — a row told not to wrap has nowhere to
|
||||
put the panel, which is how it came to sit beside the episode on a phone */
|
||||
.episode {
|
||||
padding: var(--space-2) var(--space-1);
|
||||
border-bottom: 1px solid oklch(from var(--line) l c h / 45%);
|
||||
transition: background 150ms var(--ease-out);
|
||||
}
|
||||
|
||||
.episode-line {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-1) var(--space-2);
|
||||
padding: var(--space-2) var(--space-1);
|
||||
border-bottom: 1px solid oklch(from var(--line) l c h / 45%);
|
||||
transition: background 150ms var(--ease-out);
|
||||
}
|
||||
|
||||
.ep-tag {
|
||||
@@ -2314,7 +2320,7 @@ body {
|
||||
whether the file is on disk, and the control — everything else is detail
|
||||
you open the desktop for. Hidden, not shrunk: half a date is worse than
|
||||
no date. */
|
||||
.episode {
|
||||
.episode-line {
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user