From 0b6bdc82e60a327118d0ea7afad7097ac76c17fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m=20Kov=C3=A1cs?= <43071496+adam-kov@users.noreply.github.com> Date: Thu, 19 Jan 2023 11:27:16 +0100 Subject: [PATCH] feat(frontend): Add app preview lock (#1127) * feat(frontend): Add locked state to app preview * change color * add transition --- .../components/apps/editor/AppPreview.svelte | 32 +++++++++++++++---- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/frontend/src/lib/components/apps/editor/AppPreview.svelte b/frontend/src/lib/components/apps/editor/AppPreview.svelte index 9cc2897309..a2376e98be 100644 --- a/frontend/src/lib/components/apps/editor/AppPreview.svelte +++ b/frontend/src/lib/components/apps/editor/AppPreview.svelte @@ -1,6 +1,7 @@ -
- {#if $appStore.grid} -
- +
+
+ {#if $appStore.grid} +
+ +
+ {/if} +
+ {#if isLocked} + +
isLocked = false} + class="absolute inset-0 center-center bg-black/20 z-50 backdrop-blur-[1px] cursor-pointer" + > +
{/if}