layout shifts

This commit is contained in:
Vincent van der Wal
2026-08-01 13:37:04 +02:00
parent 792da49cac
commit fe961a27ae
24 changed files with 427 additions and 210 deletions
+9
View File
@@ -138,6 +138,15 @@ export const defaultChartLayout: ChartPanel[] = [
export const storedChartLayout = persisted<ChartPanel[]>('chart_layout_v1', defaultChartLayout);
/**
* Time range the meteograms open on. 'auto' narrows to three days on a phone,
* where a full week of hours is too dense to read, and shows everything on
* roomier screens.
*/
export type ChartRangePref = 'auto' | 'today' | '3d' | '5d' | 'all';
export const storedChartRange = persisted<ChartRangePref>('chart_range_v1', 'auto');
/** Selected ensemble model for the 14-day spread forecast. */
export const storedEnsembleModel = persisted<string>('ensemble_model', 'ncep_gefs_seamless');