From c03337fed99e42c4461aece91642effce909252d Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Mon, 22 Jul 2024 10:11:23 +0000 Subject: [PATCH] web/skeleton: don't render if hidden --- web/src/components/misc/Skeleton.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/components/misc/Skeleton.svelte b/web/src/components/misc/Skeleton.svelte index bb0b295f..7f625e4b 100644 --- a/web/src/components/misc/Skeleton.svelte +++ b/web/src/components/misc/Skeleton.svelte @@ -10,16 +10,17 @@ $: style = [ width && `width: ${width}`, - height && `height: ${height}`, - hidden && `display: none` + height && `height: ${height}` ].filter(a => a).join(';'); +{#if hidden !== true}
+{/if}