mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-24 10:32:09 +02:00
web/dialog: fix meowbalt not being displayed on nojs popup
This commit is contained in:
parent
8ca793f69b
commit
22eb05bf98
@ -39,7 +39,10 @@
|
||||
>
|
||||
{#if meowbalt}
|
||||
<div class="meowbalt-container">
|
||||
<Meowbalt emotion={meowbalt} />
|
||||
<Meowbalt
|
||||
emotion={meowbalt}
|
||||
forceLoaded={id === 'nojs-dialog'}
|
||||
/>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="dialog-inner-container">
|
||||
|
@ -4,16 +4,17 @@
|
||||
|
||||
type Props = {
|
||||
emotion: MeowbaltEmotions;
|
||||
forceLoaded?: boolean;
|
||||
};
|
||||
|
||||
const { emotion }: Props = $props();
|
||||
const { emotion, forceLoaded }: Props = $props();
|
||||
|
||||
let loaded = $state(false);
|
||||
</script>
|
||||
|
||||
<img
|
||||
class="meowbalt {emotion}"
|
||||
class:loaded
|
||||
class:loaded={loaded || forceLoaded}
|
||||
onload={() => (loaded = true)}
|
||||
src="/meowbalt/{emotion}.png"
|
||||
height="152"
|
||||
|
Loading…
x
Reference in New Issue
Block a user