Fix vehicle day tabs
This commit is contained in:
fraxle
2026-08-04 03:05:07 +01:00
parent 8f161dc8cb
commit a94cdea9b2
3 changed files with 19 additions and 27 deletions
+7 -1
View File
@@ -1312,9 +1312,15 @@ export function UTCIForecast() {
color: feelLum > 165 ? '#1a1a1a' : '#ffffff',
...(cat.fontWeight ? { fontWeight: cat.fontWeight } : {}),
};
// Card wears the same hue as its feel tag, washed right back so
// the tag still reads as the strong swatch on top of it.
const cardRgb = fscRgb(dispTemp, 0.70) || [245, 245, 245];
return html`
<div key=${r.iso} class=${'fsc-card' + (isNow ? ' fsc-card--now' : '')}
style=${fscPlot && { gridColumn: fscPlot.cardCol(fscPlot.landing[ri]) }}>
style=${{
background: `rgb(${cardRgb[0]},${cardRgb[1]},${cardRgb[2]})`,
...(fscPlot ? { gridColumn: fscPlot.cardCol(fscPlot.landing[ri]) } : {}),
}}>
<div class="fsc-time">${localHHMMs}</div>
<div class="fsc-scope-wrap">
<${SkyScope} elev=${r.elev} dt=${r.dt} glob=${r.glob} size=${42} />