From 7d98b1578021b5bbad7885b2449da39a8960f06b Mon Sep 17 00:00:00 2001 From: grngxd <36968271+grngxd@users.noreply.github.com> Date: Sun, 8 Jun 2025 15:10:49 +0100 Subject: [PATCH] wrap file component in anchor tag for file serving --- src/components/File.tsx | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/src/components/File.tsx b/src/components/File.tsx index f852be9..60f9e4a 100644 --- a/src/components/File.tsx +++ b/src/components/File.tsx @@ -19,26 +19,28 @@ const formatSize = (bytes: number) => { export default component$(({ file }: FileProps) => { return ( -
- { file.Base64 && (file.ID.endsWith(".png") || file.ID.endsWith(".jpg") || file.ID.endsWith(".jpeg")) && ( - {file.ID} - )} -
-

- {file.ID.split("_").slice(1).join("_") || "Untitled"} -

- + ) }) \ No newline at end of file