Lib: Update lazy components (dropdown + card now lazy)

This commit is contained in:
2024-12-16 16:44:46 +01:00
parent 0b3184ba56
commit 6b87d05de6
8 changed files with 136 additions and 80 deletions

View File

@ -1,7 +1,7 @@
<script lang="ts">
import { get_image_preview_event_handler } from "$lib/image";
import { FileDropzone } from "@skeletonlabs/skeleton";
import Card from "./Card.svelte";
import LazyCard from "./LazyCard.svelte";
import Button from "./Button.svelte";
import type { Race } from "$lib/schema";
import Input from "./Input.svelte";
@ -55,7 +55,7 @@
};
</script>
<Card
<LazyCard
imgsrc={race?.pictogram_url ?? pictogram_template}
imgwidth={RACE_PICTOGRAM_WIDTH}
imgheight={RACE_PICTOGRAM_HEIGHT}
@ -175,4 +175,4 @@
</div>
</div>
</form>
</Card>
</LazyCard>