diff --git a/src/lib/components/Card.svelte b/src/lib/components/Card.svelte index ea2ad87..616287b 100644 --- a/src/lib/components/Card.svelte +++ b/src/lib/components/Card.svelte @@ -14,22 +14,27 @@ if(icon_override){ let isloaded = false import { onMount } from "svelte"; - onMount(() => { - isloaded = document.querySelector("img")?.complete ? true : false - }) + +onMount(() => { + isloaded = document.querySelector("img")?.complete ? true : false +}) + - - - + + + + isloaded=true}/> {#if icon_override || recipe.season.includes(current_month)} {recipe.icon} {/if} - - + {recipe.category} {@html recipe.name} @@ -184,4 +190,5 @@ import { onMount } from "svelte"; {/each} +