Skip to content

Commit

Permalink
fix build fail, fix #56
Browse files Browse the repository at this point in the history
  • Loading branch information
Eggrror404 committed Aug 28, 2024
1 parent 779c7dc commit cace7c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/CenteredPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
postList: {
name: m.post_list(),
url: `${base}/posts`
url: `${base}/post`
}
};
Expand Down
6 changes: 5 additions & 1 deletion src/lib/components/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@
<!-- theme toggle button -->
<button class="rounded-sm p-2 transition-colors hover:bg-primary/20" on:click={toggleMode}>
{#if $mode === "light"}
<Night class="h-8 w-8" aria-label={m.dark_theme()} />
<!-- awkward fix - see https://github.com/tnfshcec/tnfshcec-web/issues/56#issuecomment-2315897422 -->
<!-- basically we make the two SVGs different so Svelte updates it. -->
<span>
<Night class="h-8 w-8" aria-label={m.dark_theme()} id="night" />
</span>
{:else}
<Sunny class="h-8 w-8" aria-label={m.light_theme()} />
{/if}
Expand Down

0 comments on commit cace7c0

Please sign in to comment.