From 19ab5224c3a3486beb0826f55c4a75491ef470da Mon Sep 17 00:00:00 2001 From: Eamonn de Leastar Date: Fri, 3 Jan 2025 19:01:24 +0000 Subject: [PATCH] persist card styles and layouts --- src/lib/ui/components/Card.svelte | 2 +- src/lib/ui/themes/LayoutMenu.svelte | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/ui/components/Card.svelte b/src/lib/ui/components/Card.svelte index c1d6ea6d..1f1d83de 100644 --- a/src/lib/ui/components/Card.svelte +++ b/src/lib/ui/components/Card.svelte @@ -151,7 +151,7 @@ {/snippet} {#snippet landscape(cardDetails: CardDetails)} -
+
{@render figure(cardDetails)}
diff --git a/src/lib/ui/themes/LayoutMenu.svelte b/src/lib/ui/themes/LayoutMenu.svelte index 65acd935..e752bdd5 100644 --- a/src/lib/ui/themes/LayoutMenu.svelte +++ b/src/lib/ui/themes/LayoutMenu.svelte @@ -26,6 +26,8 @@ let codeTheme = $state([currentCodeTheme.value]); $effect(() => { + themeService.setLayout(themeService.layout.value); + themeService.setCardStyle(themeService.cardStyle.value); themeService.setTheme(theme[0]); markdownService.setCodeTheme(codeTheme[0]); themeService.setDisplayMode(themeService.lightMode.value);