Skip to content

Commit fe6bfe0

Browse files
committed
fix: windy hourly can show all weather data now
1 parent 97423bf commit fe6bfe0

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

app/components/WindyItem.svelte

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,11 @@
170170
textPaint.setTextAlign(Align.CENTER);
171171
textPaint.setTextSize(9 * $fontScale);
172172
textPaint.setFontWeight('normal');
173-
canvas.drawText(formatDate(item.time, 'ddd', item.timezoneOffset), w2, 27 * $fontScale, textPaint);
173+
canvas.drawText(formatDate(item.time, 'ddd', item.timezoneOffset), w2, 30 * $fontScale, textPaint);
174174
}
175175
textPaint.setFontWeight('normal');
176176
// --- Data rows ---
177+
// DEV_LOG && console.log('dataToShow', dataToShow);
177178
for (const prop of dataToShow) {
178179
const rowTop = getRowTop(rowHeight, prop);
179180
const rh = prop === WeatherProps.iconId ? rowHeight * ICON_ROW_SCALE : rowHeight;
@@ -311,10 +312,7 @@
311312
break;
312313
}
313314
314-
case WeatherProps.apparentTemperature:
315-
case WeatherProps.relativeHumidity:
316-
case WeatherProps.cloudCover:
317-
case WeatherProps.uvIndex: {
315+
default: {
318316
const val = item[prop];
319317
if (val != null) {
320318
textPaint.setTextAlign(Align.CENTER);

0 commit comments

Comments
 (0)