chore(web) Update SvelteKit (#1066)

* Update sveltekit

* Update sveltekit

* Update correct preloading attribute
This commit is contained in:
Alex 2022-12-06 18:08:08 -06:00 committed by GitHub
parent b5a5363a6a
commit 1adf8ff6b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 3336 additions and 3077 deletions

View file

@ -52,7 +52,7 @@
>
<div class="flex border-b dark:border-b-immich-dark-gray place-items-center px-6 py-2 ">
<a
data-sveltekit-prefetch
data-sveltekit-preload-data="hover"
class="flex gap-2 place-items-center hover:cursor-pointer"
href="/photos"
>
@ -82,7 +82,7 @@
{/if}
{#if user.isAdmin}
<a data-sveltekit-prefetch href={`admin`}>
<a data-sveltekit-preload-data="hover" href={`admin`}>
<button
class={`flex place-items-center place-content-center gap-2 hover:bg-immich-primary/5 dark:hover:bg-immich-dark-primary/25 dark:text-immich-dark-fg p-2 rounded-lg font-medium ${
$page.url.pathname == '/admin' &&
@ -97,6 +97,7 @@
on:focus={() => (shouldShowAccountInfo = true)}
on:mouseleave={() => (shouldShowAccountInfo = false)}
on:click={showAccountInfoPanel}
on:keydown={showAccountInfoPanel}
>
<button
class="flex place-items-center place-content-center rounded-full bg-immich-primary hover:bg-immich-primary/80 h-12 w-12 text-gray-100 dark:text-immich-dark-bg dark:bg-immich-dark-primary"