From 8aa0609c95818f9c19a357f6313debd6d45bcb92 Mon Sep 17 00:00:00 2001 From: oiov Date: Tue, 15 Jul 2025 16:18:19 +0800 Subject: [PATCH] upd file links --- components/file/file-list.tsx | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/components/file/file-list.tsx b/components/file/file-list.tsx index 643ca1d..80148af 100644 --- a/components/file/file-list.tsx +++ b/components/file/file-list.tsx @@ -240,26 +240,28 @@ export default function UserFileList({ -
- -

- {`${file.name}${getFileUrl(file.path)}`} -

- ${getFileUrl(file.path)}`} - /> -

- {`![${file.name}](${getFileUrl(file.path)})`} + {`[${file.name}](${getFileUrl(file.path)})`}

+ {file.mimeType.startsWith("image/") && ( +
+ +

+ {`${file.name}${getFileUrl(file.path)}`} +

+ ${getFileUrl(file.path)}`} + /> +
+ )} );