Skip to content

Commit

Permalink
persist card styles and layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
edeleastar committed Jan 3, 2025
1 parent 8c42b93 commit 19ab522
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ui/components/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
{/snippet}

{#snippet landscape(cardDetails: CardDetails)}
<div class="w-1/3">
<div class="flex h-full w-1/3 items-center">
{@render figure(cardDetails)}
</div>
<div class="w-2/3">
Expand Down
2 changes: 2 additions & 0 deletions src/lib/ui/themes/LayoutMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 19ab522

Please sign in to comment.