From 09202b36a7e8f144ab48b343f725a1d463896ae8 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sun, 25 Feb 2024 12:18:36 -0300 Subject: [PATCH] Fix styling issues and add delete icon --- .../GenericNode/components/parameterComponent/index.tsx | 4 +++- .../pages/FlowPage/components/nodeToolbarComponent/index.tsx | 5 ++++- src/frontend/src/utils/styleUtils.ts | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index da1d18840..917103260 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -324,7 +324,9 @@ export default function ParameterComponent({ ) : ( title )} - {required ? " *" : ""} + + {required ? " *" : ""} +
{info !== "" && ( diff --git a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx index 5abaa7bfb..8d94c3b6e 100644 --- a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx @@ -396,7 +396,10 @@ export default function NodeToolbarComponent({ />{" "} Delete{" "} - +
diff --git a/src/frontend/src/utils/styleUtils.ts b/src/frontend/src/utils/styleUtils.ts index 78dcfdec1..73ba319bd 100644 --- a/src/frontend/src/utils/styleUtils.ts +++ b/src/frontend/src/utils/styleUtils.ts @@ -25,6 +25,7 @@ import { Compass, Copy, Cpu, + Delete, Download, DownloadCloud, Edit, @@ -117,7 +118,6 @@ import { X, XCircle, Zap, - Delete, } from "lucide-react"; import { FaApple, FaGithub } from "react-icons/fa"; import { AWSIcon } from "../icons/AWS";