remove: svg from dashboard lists
This commit is contained in:
@@ -53,7 +53,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Card style={cardStyle} class="relative overflow-hidden">
|
<Card style={cardStyle} class="relative overflow-hidden">
|
||||||
<ThemeCard themeName={fallbackTheme} color={fallbackColor} />
|
<ThemeCard themeName={fallbackTheme} color={fallbackColor} showPattern={false} />
|
||||||
<CardHeader class="relative z-10">
|
<CardHeader class="relative z-10">
|
||||||
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
|
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
|
||||||
<div class="flex-1 min-w-0">
|
<div class="flex-1 min-w-0">
|
||||||
|
|||||||
@@ -5,10 +5,12 @@
|
|||||||
|
|
||||||
let {
|
let {
|
||||||
themeName,
|
themeName,
|
||||||
color
|
color,
|
||||||
|
showPattern = true
|
||||||
}: {
|
}: {
|
||||||
themeName?: string | null;
|
themeName?: string | null;
|
||||||
color?: string | null;
|
color?: string | null;
|
||||||
|
showPattern?: boolean;
|
||||||
} = $props();
|
} = $props();
|
||||||
|
|
||||||
const theme = $derived(getTheme(themeName));
|
const theme = $derived(getTheme(themeName));
|
||||||
@@ -18,6 +20,6 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if theme.pattern !== 'none'}
|
{#if showPattern && theme.pattern !== 'none'}
|
||||||
<CardPattern pattern={theme.pattern} color={patternColor} opacity={PATTERN_OPACITY} />
|
<CardPattern pattern={theme.pattern} color={patternColor} opacity={PATTERN_OPACITY} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user