From 5ce15bb0df3d48f0cf55d2c9660e563a411d8b77 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" <timothyjrbeck@gmail.com> Date: Sun, 4 Aug 2024 18:16:00 +0200 Subject: [PATCH] refac --- src/lib/components/common/ImagePreview.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/common/ImagePreview.svelte b/src/lib/components/common/ImagePreview.svelte index c1d1fef6b..5efc70442 100644 --- a/src/lib/components/common/ImagePreview.svelte +++ b/src/lib/components/common/ImagePreview.svelte @@ -54,7 +54,7 @@ bind:this={previewElement} class="modal fixed top-0 right-0 left-0 bottom-0 bg-black text-white w-full min-h-screen h-screen flex justify-center z-[9999] overflow-hidden overscroll-contain" > - <div class=" absolute left-0 w-full flex justify-between"> + <div class=" absolute left-0 w-full flex justify-between select-none"> <div> <button class=" p-5" @@ -98,6 +98,6 @@ </button> </div> </div> - <img {src} {alt} class=" mx-auto h-full object-scale-down" /> + <img {src} {alt} class=" mx-auto h-full object-scale-down select-none" draggable="false" /> </div> {/if}