diff --git a/src/lib/components/ui/sidebar/Sidebar.svelte b/src/lib/components/ui/sidebar/Sidebar.svelte index 7add28fa..fc37a480 100644 --- a/src/lib/components/ui/sidebar/Sidebar.svelte +++ b/src/lib/components/ui/sidebar/Sidebar.svelte @@ -50,19 +50,16 @@ {#if $profileData.profiles.length >= 1}
{#each $profileData.profiles as prof, index} - { setUserID(prof.id) goto($page.url, { invalidateAll: true, }) }} + class="hover:bg-slate-200 {expanded ? '' : '!p-1.5'}" > - + {/each} {/if}
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index deed6695..c9ab1a19 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -57,7 +57,3 @@ - -{#await import('$lib/PwaReload.svelte') then { default: PwaReload }} - -{/await} diff --git a/vite.config.ts b/vite.config.ts index 71bb5ffb..bbf33287 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,7 +6,7 @@ export default defineConfig({ plugins: [ sveltekit(), SvelteKitPWA({ - registerType: 'prompt', + registerType: 'autoUpdate', strategies: 'generateSW', workbox: { globPatterns: ['client/**/*.{js,css,html,ico,png,svg}'],