remove: svg from dashboard lists

This commit is contained in:
rasmusq
2025-12-19 20:09:49 +01:00
parent b80ef2cfea
commit 19493b4cd3
2 changed files with 5 additions and 3 deletions

View File

@@ -53,7 +53,7 @@
</script>
<Card style={cardStyle} class="relative overflow-hidden">
<ThemeCard themeName={fallbackTheme} color={fallbackColor} />
<ThemeCard themeName={fallbackTheme} color={fallbackColor} showPattern={false} />
<CardHeader class="relative z-10">
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
<div class="flex-1 min-w-0">

View File

@@ -5,10 +5,12 @@
let {
themeName,
color
color,
showPattern = true
}: {
themeName?: string | null;
color?: string | null;
showPattern?: boolean;
} = $props();
const theme = $derived(getTheme(themeName));
@@ -18,6 +20,6 @@
});
</script>
{#if theme.pattern !== 'none'}
{#if showPattern && theme.pattern !== 'none'}
<CardPattern pattern={theme.pattern} color={patternColor} opacity={PATTERN_OPACITY} />
{/if}