fix(medias): svg files don't load in list (#2381)

This commit is contained in:
Meier Lukas
2025-02-20 22:56:21 +01:00
committed by GitHub
parent 311ae80667
commit 52549a598d

View File

@@ -1,10 +1,10 @@
import Image from "next/image";
import Link from "next/link";
import { notFound } from "next/navigation";
import {
ActionIcon,
Anchor,
Group,
Image,
Stack,
Table,
TableTbody,
@@ -113,11 +113,12 @@ const Row = async ({ media }: RowProps) => {
<TableTr>
<TableTd w={64}>
<Image
// Switched to mantine image because next/image doesn't support svgs
src={createLocalImageUrl(media.id)}
alt={media.name}
width={64}
height={64}
style={{ objectFit: "contain" }}
w={64}
h={64}
fit="contain"
/>
</TableTd>
<TableTd>{media.name}</TableTd>