move settings to one icon mobile
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
storedVariablePrefs
|
||||
} from '$lib/stores/settings';
|
||||
|
||||
import { buildLocationRoute } from '$lib/utils/location';
|
||||
|
||||
import { ChartContainer } from '$lib/components/charts';
|
||||
|
||||
import {
|
||||
@@ -76,6 +78,10 @@
|
||||
storedLocation.set(data.location);
|
||||
});
|
||||
|
||||
// Lets the strip's side buttons hand over to the archive / seasonal outlook
|
||||
// for the same place once their range is exhausted.
|
||||
let locationRoute = $derived(buildLocationRoute(location));
|
||||
|
||||
let mounted = $state(false);
|
||||
let loading = $state(true);
|
||||
let loadError = $state<FriendlyWeatherError | null>(null);
|
||||
@@ -318,6 +324,7 @@
|
||||
onExtend={() => (forecastDays = 15)}
|
||||
canExtendPast={pastDays < 3}
|
||||
onExtendPast={() => (pastDays = 3)}
|
||||
{locationRoute}
|
||||
/>
|
||||
{/if}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user