chore image

This commit is contained in:
oiov
2025-07-09 16:26:32 +08:00
parent feb0e31eb2
commit 1277a3132b
2 changed files with 11 additions and 11 deletions
+10 -10
View File
@@ -11,7 +11,6 @@ import {
FileText,
FileType2,
Folder,
Image,
ImageOff,
Trash2,
} from "lucide-react";
@@ -345,15 +344,16 @@ export default function UserFileList({
side="right"
className="w-72 space-y-1 text-wrap p-3 text-start"
>
{file.mimeType.startsWith("image/") && (
<img
className="max-h-[70vh] w-72 rounded shadow"
width={300}
height={300}
src={getFileUrl(file.path)}
alt={`${file.path}`}
/>
)}
{file.mimeType.startsWith("image/") &&
file.status === 1 && (
<img
className="max-h-[70vh] w-72 rounded shadow"
width={300}
height={300}
src={getFileUrl(file.path)}
alt={`${file.path}`}
/>
)}
{renderFileLinks(file, index)}
</TooltipContent>
</Tooltip>
+1 -1
View File
File diff suppressed because one or more lines are too long