From cdabfc3f6f060243cb115d73c1754c3dabf08f82 Mon Sep 17 00:00:00 2001 From: KevIsDev Date: Thu, 24 Apr 2025 11:55:14 +0100 Subject: [PATCH] style(chat): update button variants and improve file preview styling Change button variants from 'outline' to 'default' for consistency across components. Enhance FilePreview component with better spacing, borders, and file name display to improve visual clarity and user experience. --- app/components/chat/BaseChat.tsx | 22 ++++++++++--------- app/components/chat/FilePreview.tsx | 15 +++++++++---- app/components/chat/GitCloneButton.tsx | 4 ++-- app/components/chat/ImportFolderButton.tsx | 4 ++-- .../chatExportAndImport/ImportButtons.tsx | 4 ++-- 5 files changed, 29 insertions(+), 20 deletions(-) diff --git a/app/components/chat/BaseChat.tsx b/app/components/chat/BaseChat.tsx index 142e19a..d6435e6 100644 --- a/app/components/chat/BaseChat.tsx +++ b/app/components/chat/BaseChat.tsx @@ -641,23 +641,25 @@ export const BaseChat = React.forwardRef( -
+
{!chatStarted && (
{ImportButtons(importChat)}
)} - {!chatStarted && - ExamplePrompts((event, messageInput) => { - if (isStreaming) { - handleStop?.(); - return; - } +
+ {!chatStarted && + ExamplePrompts((event, messageInput) => { + if (isStreaming) { + handleStop?.(); + return; + } - handleSendMessage?.(event, messageInput); - })} - {!chatStarted && } + handleSendMessage?.(event, messageInput); + })} + {!chatStarted && } +
diff --git a/app/components/chat/FilePreview.tsx b/app/components/chat/FilePreview.tsx index 0500d03..e42faef 100644 --- a/app/components/chat/FilePreview.tsx +++ b/app/components/chat/FilePreview.tsx @@ -12,18 +12,25 @@ const FilePreview: React.FC = ({ files, imageDataList, onRemov } return ( -
+
{files.map((file, index) => (
{imageDataList[index] && ( -
- {file.name} +
+ {file.name} +
+ {file.name} +
)}
diff --git a/app/components/chat/GitCloneButton.tsx b/app/components/chat/GitCloneButton.tsx index a450c2c..3fcebdc 100644 --- a/app/components/chat/GitCloneButton.tsx +++ b/app/components/chat/GitCloneButton.tsx @@ -156,13 +156,13 @@ ${escapeBoltTags(file.content)}