mirror of
https://github.com/imputnet/cobalt.git
synced 2025-12-17 21:48:50 +00:00
web/dialog: fix meowbalt not being displayed on nojs popup
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user