From 1634cfc2524d820673d2f4949da73cb0f76a6881 Mon Sep 17 00:00:00 2001 From: Takeshi Kimata <117462761+kimatata@users.noreply.github.com> Date: Sun, 17 Mar 2024 21:09:49 +0900 Subject: [PATCH] fix Uploaded file display --- .../[caseId]/case-attachments-editor.tsx | 96 +++++++++++-------- 1 file changed, 57 insertions(+), 39 deletions(-) diff --git a/frontend/app/projects/[projectId]/folders/[folderId]/cases/[caseId]/case-attachments-editor.tsx b/frontend/app/projects/[projectId]/folders/[folderId]/cases/[caseId]/case-attachments-editor.tsx index 808b659..13d7d55 100644 --- a/frontend/app/projects/[projectId]/folders/[folderId]/cases/[caseId]/case-attachments-editor.tsx +++ b/frontend/app/projects/[projectId]/folders/[folderId]/cases/[caseId]/case-attachments-editor.tsx @@ -1,6 +1,6 @@ -import { Image, Button, Tooltip } from "@nextui-org/react"; +import { Image, Button, Tooltip, Card, CardBody } from "@nextui-org/react"; import { AttachmentType } from "./caseTypes"; -import { Trash } from "lucide-react"; +import { Trash, ArrowDownToLine } from "lucide-react"; type Props = { attachments: AttachmentType[]; @@ -32,45 +32,63 @@ export default function CaseAttachmentsEditor({ }); return ( <> - {images.map((image, index) => ( -
- {image.title} -
- - - -
-
- ))} +
+ {images.map((image, index) => ( + + + {image.title} +
+

{image.title}

+ + + +
+
+
+ ))} +
{others.map((file, index) => ( -
-
{file.title}
-
{file.path}
-
- - - -
-
+ + +
+

{file.title}

+
+ + + + + + +
+
+
+
))} );