3.0.2.4
Move At A Glance panel left. Tweak day tabs highlight and add danger level pulsing. Arrange at a glance order to make more sense and better priority. New brighter favicon.
This commit is contained in:
+10
-2
@@ -1523,10 +1523,18 @@ export function UTCIForecast() {
|
||||
<span class="insight-label">${label}</span>
|
||||
<span class="insight-value">${value}</span>
|
||||
</div>`;
|
||||
const comfortItem = glanceSummary.find(i => i.label === 'Comfortable window');
|
||||
const restSummary = glanceSummary.filter(i => i.label !== 'Comfortable window');
|
||||
return [
|
||||
...glanceSummary.flatMap(item => [
|
||||
...restSummary.flatMap(item => [
|
||||
renderRow(item),
|
||||
...(item.label === 'Peak felt temp' ? heatEvents.map(e => renderRow(e, 'ev-')) : []),
|
||||
// After the peak/heat block, drop in the comfortable window
|
||||
...(item.label === 'Peak felt temp'
|
||||
? [
|
||||
...heatEvents.map(e => renderRow(e, 'ev-')),
|
||||
...(comfortItem ? [renderRow(comfortItem)] : []),
|
||||
]
|
||||
: []),
|
||||
]),
|
||||
...otherEvents.map(e => renderRow(e, 'ev-')),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user