Skip to content
Snippets Groups Projects
Unverified Commit 3856a4d1 authored by Sean Hatfield's avatar Sean Hatfield Committed by GitHub
Browse files

Drag and drop file colors update & margin styles (#2000)

drag and drop file colors update & margin styles
parent 2ee5d209
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ import { Tooltip } from "react-tooltip"; ...@@ -20,7 +20,7 @@ import { Tooltip } from "react-tooltip";
export default function AttachmentManager({ attachments }) { export default function AttachmentManager({ attachments }) {
if (attachments.length === 0) return null; if (attachments.length === 0) return null;
return ( return (
<div className="flex flex-wrap my-2"> <div className="flex flex-wrap mt-4 mb-2">
{attachments.map((attachment) => ( {attachments.map((attachment) => (
<AttachmentItem key={attachment.uid} attachment={attachment} /> <AttachmentItem key={attachment.uid} attachment={attachment} />
))} ))}
...@@ -82,7 +82,7 @@ function AttachmentItem({ attachment }) { ...@@ -82,7 +82,7 @@ function AttachmentItem({ attachment }) {
</button> </button>
</div> </div>
<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" /> <WarningOctagon size={30} className="text-white" />
</div> </div>
...@@ -158,7 +158,7 @@ function displayFromFile(file) { ...@@ -158,7 +158,7 @@ function displayFromFile(file) {
case "docx": case "docx":
return { iconBgColor: "bg-royalblue", Icon: FileDoc }; return { iconBgColor: "bg-royalblue", Icon: FileDoc };
case "html": case "html":
return { iconBgColor: "bg-warn", Icon: FileHtml }; return { iconBgColor: "bg-purple", Icon: FileHtml };
case "csv": case "csv":
case "xlsx": case "xlsx":
return { iconBgColor: "bg-success", Icon: FileCsv }; return { iconBgColor: "bg-success", Icon: FileCsv };
......
...@@ -36,11 +36,13 @@ export default { ...@@ -36,11 +36,13 @@ export default {
"dark-text": "#222628", "dark-text": "#222628",
description: "#D2D5DB", description: "#D2D5DB",
"x-button": "#9CA3AF", "x-button": "#9CA3AF",
royalblue: '#3538CD', royalblue: "#065986",
magenta: '#C11574', purple: "#4A1FB8",
danger: '#F04438', magenta: "#9E165F",
warn: '#854708', danger: "#F04438",
success: '#027A48', error: "#B42318",
warn: "#854708",
success: "#05603A",
darker: "#F4F4F4" darker: "#F4F4F4"
}, },
backgroundImage: { backgroundImage: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment