From ccaa67b6b23dac0b67f67c67fef94fbca96482ed Mon Sep 17 00:00:00 2001 From: Andrew Trokhymenko Date: Sat, 30 Nov 2024 00:04:53 -0500 Subject: [PATCH] adjusting spaces for X button in file-preview --- app/components/chat/FilePreview.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/app/components/chat/FilePreview.tsx b/app/components/chat/FilePreview.tsx index 4c842ee..0500d03 100644 --- a/app/components/chat/FilePreview.tsx +++ b/app/components/chat/FilePreview.tsx @@ -1,7 +1,5 @@ -// Remove the lucide-react import import React from 'react'; -// Rest of the interface remains the same interface FilePreviewProps { files: File[]; imageDataList: string[]; @@ -14,19 +12,17 @@ const FilePreview: React.FC = ({ files, imageDataList, onRemov } return ( -
+
{files.map((file, index) => (
{imageDataList[index] && ( -
+
{file.name}
)}