Skip to content

Commit

Permalink
Update item.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
YouXam authored Jun 20, 2024
1 parent 11b1cfc commit 6789ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ 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 (<>{src}</>)
return (
<div className="relative group h-full my-auto" onClick={() => {
if (!isError && onClick) {
Expand Down

0 comments on commit 6789ca0

Please sign in to comment.