fix(web) Disable draggable on common usage element to avoid trigger drag-n-drop layer (#1330)

This commit is contained in:
Alex 2023-01-15 14:01:10 -06:00 committed by GitHub
parent 036d0556a4
commit eace0af7a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 241 additions and 187 deletions

View file

@ -45,6 +45,7 @@
style:height={`${size}px`}
class={`inline rounded-full object-cover border shadow-md`}
title={user.email}
draggable="false"
/>
</button>
{:catch}

View file

@ -20,6 +20,7 @@
height="200"
width="200"
class="animate-bounce pb-16"
draggable="false"
/>
<div class="text-2xl">Drop files anywhere to upload</div>
</div>

View file

@ -252,6 +252,7 @@
alt={asset.id}
class={`object-cover ${getSize()} transition-all z-0 ${getThumbnailBorderStyle()}`}
loading="lazy"
draggable="false"
/>
{/if}

View file

@ -38,6 +38,7 @@
src={`${$page.url.origin}/api/user/profile-image/${user.id}`}
alt="profile-img"
class="inline rounded-full h-20 w-20 object-cover shadow-md"
draggable="false"
/>
{:catch}
<div transition:fade={{ duration: 200 }} class="text-lg">

View file

@ -50,7 +50,7 @@
class="flex gap-2 place-items-center hover:cursor-pointer"
href="/photos"
>
<img src="/immich-logo.svg" alt="immich logo" height="35" width="35" />
<img src="/immich-logo.svg" alt="immich logo" height="35" width="35" draggable="false" />
<h1 class="font-immich-title text-2xl text-immich-primary dark:text-immich-dark-primary">
IMMICH
</h1>
@ -102,6 +102,7 @@
src={`${$page.url.origin}/api/user/profile-image/${user.id}`}
alt="profile-img"
class="inline rounded-full h-12 w-12 object-cover shadow-md"
draggable="false"
/>
{:catch}
{getFirstLetter(user.firstName)}{getFirstLetter(user.lastName)}

View file

@ -40,6 +40,7 @@
data-sveltekit-noscroll
href={AppRoute.PHOTOS}
class="relative"
draggable="false"
>
<SideBarButton
title={`Photos`}
@ -71,7 +72,7 @@
</div>
</a>
<a data-sveltekit-preload-data="hover" href={AppRoute.SHARING} class="relative">
<a data-sveltekit-preload-data="hover" href={AppRoute.SHARING} class="relative" draggable="false">
<SideBarButton
title="Sharing"
logo={AccountMultipleOutline}
@ -103,7 +104,7 @@
<div class="text-xs ml-5 my-4 dark:text-immich-dark-fg">
<p>LIBRARY</p>
</div>
<a data-sveltekit-preload-data="hover" href={AppRoute.ALBUMS} class="relative">
<a data-sveltekit-preload-data="hover" href={AppRoute.ALBUMS} class="relative" draggable="false">
<SideBarButton
title="Albums"
logo={ImageAlbum}

View file

@ -100,6 +100,7 @@
src="/immich-logo.svg"
alt=""
class="h-[70px] w-[70px] object-cover rounded-tl-lg rounded-bl-lg "
draggable="false"
/>
<div class="bottom-0 left-0 absolute w-full h-[25px] bg-immich-primary/30">