diff --git a/web/app.css b/web/app.css index d5aeb76..b5103bd 100644 --- a/web/app.css +++ b/web/app.css @@ -990,7 +990,8 @@ kbd{font:inherit;font-size:12px;color:var(--fg);background:var(--panel2);border: .tabs a{padding:5px 12px;border-radius:7px;font-size:13px;color:var(--dim);text-decoration:none} .tabs a.on{background:var(--raise);color:var(--fg);font-weight:500} /* A podcast's seasons (#482): the tabs' track, scrolled sideways when there are more than fit. */ -.tabs.seasons{max-width:100%;overflow-x:auto;scrollbar-width:none} +.seasonrow{display:flex;gap:8px;align-items:center;min-width:0;max-width:100%} +.tabs.seasons{min-width:0;overflow-x:auto;scrollbar-width:none} .tabs.seasons::-webkit-scrollbar{display:none} .tabs.seasons button{white-space:nowrap;flex:none} /* Where a season starts in the list of every season. */ @@ -1547,6 +1548,8 @@ body:has(#player.on) #status{padding-bottom:3px} .tabs button,.tabs a{flex:1;text-align:center;padding:7px 4px;border-radius:8px;font-size:14px} .tabs button.on,.tabs a.on{box-shadow:0 1px 3px rgba(0,0,0,.22)} /* Seasons keep their own widths, scrolling past the edge, rather than squeezing eight into 390px. */ + .seasonrow{flex:1 1 100%} + .seasonrow .tabs.seasons{flex:1 1 auto} .tabs.seasons button{flex:none;padding:7px 12px} /* Rows: taller, larger type, and a hairline between them that starts where the text does. */ diff --git a/web/src/seasons.ts b/web/src/seasons.ts index cff925c..396c7b7 100644 --- a/web/src/seasons.ts +++ b/web/src/seasons.ts @@ -24,11 +24,12 @@ function seasonsHTML(list: SeasonCount[]): string{ } function drawSeasons(f: Feed, list: SeasonCount[]|undefined){ const bar=$('#content .toolbar'); if(!bar||S.feed!==f.id) return; - bar.querySelector('.seasons')?.remove(); bar.querySelector('.seasondl')?.remove(); + bar.querySelector('.seasonrow')?.remove(); if(!list||!seasonsShown(list)) return; - bar.insertAdjacentHTML('beforeend',seasonsHTML(list)); - if(S.season) bar.insertAdjacentHTML('beforeend',``); + // The download beside the picker, on its row: on a phone, on a row of its own, it cost a line. + const picked=list.find(s=>seasonKey(s)===S.season); + bar.insertAdjacentHTML('beforeend',`
${seasonsHTML(list)}${picked?``:''}
`); bar.querySelector('.seasondl')?.addEventListener('click',()=>downloadSeason(f)); // The one picked in view: on a phone Season 3 of six is past the edge, and the picker looked as // if every season were still showing.