From e9360d4a17c996e3d1ce73872c126d5db1c294d3 Mon Sep 17 00:00:00 2001 From: bloodwiing Date: Tue, 14 May 2024 09:20:56 +0300 Subject: [PATCH] Fix: Post Preview blocking input while invisible --- src/comp/postlist.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/comp/postlist.svelte b/src/comp/postlist.svelte index d2e3c47..eb13fd6 100644 --- a/src/comp/postlist.svelte +++ b/src/comp/postlist.svelte @@ -83,11 +83,15 @@ padding: 32px; border-radius: 16px; - pointer-events: all; + pointer-events: none; box-shadow: 0px 0px 16px var(--accent-dim); outline: 2px solid var(--accent-dim); } + + .postPreview[data-visible] > .preview { + pointer-events: all; + }