Skip to content

Commit

Permalink
Drag and drop file colors update & margin styles (#2000)
Browse files Browse the repository at this point in the history
drag and drop file colors update & margin styles
  • Loading branch information
shatfield4 authored Jul 31, 2024
1 parent 2ee5d20 commit 3856a4d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { Tooltip } from "react-tooltip";
export default function AttachmentManager({ attachments }) {
if (attachments.length === 0) return null;
return (
<div className="flex flex-wrap my-2">
<div className="flex flex-wrap mt-4 mb-2">
{attachments.map((attachment) => (
<AttachmentItem key={attachment.uid} attachment={attachment} />
))}
Expand Down Expand Up @@ -82,7 +82,7 @@ function AttachmentItem({ attachment }) {
</button>
</div>
<div
className={`bg-danger rounded-lg flex items-center justify-center flex-shrink-0 p-1`}
className={`bg-error rounded-lg flex items-center justify-center flex-shrink-0 p-1`}
>
<WarningOctagon size={30} className="text-white" />
</div>
Expand Down Expand Up @@ -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 };
Expand Down
12 changes: 7 additions & 5 deletions frontend/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 3856a4d

Please sign in to comment.