From 88f7bfe460c00f5f42567359cd38cc3d0b26efbc Mon Sep 17 00:00:00 2001 From: YouXam Date: Fri, 21 Jun 2024 15:03:49 +0800 Subject: [PATCH] Use jpg cover Signed-off-by: YouXam --- src/components/item.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/item.tsx b/src/components/item.tsx index e561efa..66efcd4 100644 --- a/src/components/item.tsx +++ b/src/components/item.tsx @@ -45,7 +45,6 @@ function ItemCard({ children, progress, onCancel }: { children: React.ReactNode, } function ItemCover({ src, alt, index, className, onClick }: { index?: number, src: string; alt: string, className?: string, onClick?: () => void }) { - const imgRef = useRef(null); const [isError, setIsError] = useState(false); return ( @@ -57,7 +56,6 @@ function ItemCover({ src, alt, index, className, onClick }: { index?: number, sr
{alt} { @@ -192,7 +190,7 @@ export const ItemDisplay: React.FC<{ item: Item, index?: number }> = ({ item, in { openDialog(url("cover", item.data.md5, "jpg")); @@ -256,7 +254,7 @@ export const ItemDisplay: React.FC<{ item: Item, index?: number }> = ({ item, in { openDialog(url("cover", item.data.md5, "jpg")); @@ -301,7 +299,7 @@ export const ItemDisplay: React.FC<{ item: Item, index?: number }> = ({ item, in { openDialog(url("cover", item.data.md5, "jpg"));