From 3856a4d19cf925ff8177e3fcc122eeedb0198a5f Mon Sep 17 00:00:00 2001 From: Sean Hatfield Date: Tue, 30 Jul 2024 21:07:24 -0500 Subject: [PATCH] Drag and drop file colors update & margin styles (#2000) drag and drop file colors update & margin styles --- .../ChatContainer/PromptInput/Attachments/index.jsx | 6 +++--- frontend/tailwind.config.js | 12 +++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/Attachments/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/Attachments/index.jsx index 4711e1b9b7..4d64ad53ec 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/Attachments/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/Attachments/index.jsx @@ -20,7 +20,7 @@ import { Tooltip } from "react-tooltip"; export default function AttachmentManager({ attachments }) { if (attachments.length === 0) return null; return ( -
+
{attachments.map((attachment) => ( ))} @@ -82,7 +82,7 @@ function AttachmentItem({ attachment }) {
@@ -158,7 +158,7 @@ function displayFromFile(file) { case "docx": return { iconBgColor: "bg-royalblue", Icon: FileDoc }; case "html": - return { iconBgColor: "bg-warn", Icon: FileHtml }; + return { iconBgColor: "bg-purple", Icon: FileHtml }; case "csv": case "xlsx": return { iconBgColor: "bg-success", Icon: FileCsv }; diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index 892b4a488a..acf68d493d 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -36,11 +36,13 @@ export default { "dark-text": "#222628", description: "#D2D5DB", "x-button": "#9CA3AF", - royalblue: '#3538CD', - magenta: '#C11574', - danger: '#F04438', - warn: '#854708', - success: '#027A48', + royalblue: "#065986", + purple: "#4A1FB8", + magenta: "#9E165F", + danger: "#F04438", + error: "#B42318", + warn: "#854708", + success: "#05603A", darker: "#F4F4F4" }, backgroundImage: {