Lib: Remove non-lazy image
We need the width/height anyways to determine the max size, so don't bother with non-lazy stuff
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
import { Button, Card, Input } from "$lib/components";
|
||||
import type { Race } from "$lib/schema";
|
||||
import { format } from "date-fns";
|
||||
import { RACE_PICTOGRAM_HEIGHT, RACE_PICTOGRAM_WIDTH } from "$lib/config";
|
||||
|
||||
interface RaceCardProps {
|
||||
/** The [Race] object used to prefill values. */
|
||||
@ -66,6 +67,8 @@
|
||||
imgsrc={race?.pictogram_url ?? pictogram_template}
|
||||
imgid="update_race_pictogram_preview_{race?.id ?? 'create'}"
|
||||
width="w-full sm:w-auto"
|
||||
imgwidth={RACE_PICTOGRAM_WIDTH}
|
||||
imgheight={RACE_PICTOGRAM_HEIGHT}
|
||||
>
|
||||
<form method="POST" enctype="multipart/form-data">
|
||||
<!-- This is also disabled, because the ID should only be -->
|
||||
|
||||
Reference in New Issue
Block a user