Ensure alt property is provided in image

This commit is contained in:
Jorge Vargas 2025-04-10 18:25:16 -06:00
parent ae7605ad4a
commit eb17632154
4 changed files with 5 additions and 5 deletions

View file

@ -10,6 +10,6 @@ import GuraGif from '../img/assets/doggo-thumbs-up.gif'
<BaseLayout>
<div class='flex flex-1 flex-col bg-soc-green-dark py-6'>
<div class='text-md` text-center'>Something went wrong.... yubi yubi</div>
<Image src={GuraGif} alt='Gawr Gura roomba' class='size-80 mx-auto mt-4' />
<Image src={GuraGif} alt='' class='size-80 mx-auto mt-4' />
</div>
</BaseLayout>

View file

@ -287,7 +287,7 @@ const coverImage = await getImage({
width={130}
height={50}
style={{ height: 'auto', width: '130px' }}
alt={provider}
alt={provider ?? 'Store icon'}
src={`/img/provider/${provider}.jpg`}
/>
</a>
@ -317,7 +317,7 @@ const coverImage = await getImage({
class='rounded-md'
width={30}
height={30}
alt={provider}
alt={provider ?? 'Provider'}
src={`/img/provider/${provider}.png`}
/>
</div>

View file

@ -14,7 +14,7 @@ export const POST: APIRoute = async ({ request, locals }) => {
let body
try {
const formData = await parseForm(request)
const formData = await parseForm(await request.formData())
body = s.create(formData, DeleteAlbum)
await prismaClient.albums.findUniqueOrThrow({ where: { id: body.albumId }, select: { id: true } })
} catch (err) {

View file

@ -14,6 +14,6 @@ import GuraGif from '../img/assets/doggo-thumbs-up.gif'
>our Discord Server</a
> for updates
</div>
<Image src={GuraGif} alt='Gawr Gura roomba' class='size-80 mx-auto mt-4' />
<Image src={GuraGif} alt='' class='size-80 mx-auto mt-4' />
</div>
</BaseLayout>