From 2ec01afd8b52a75f943a4fab1dddd17924e6be07 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Tue, 27 Jun 2023 15:39:31 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style(nodeToolbarComponent):=20u?= =?UTF-8?q?pdate=20button=20colors=20and=20icons=20for=20better=20visibili?= =?UTF-8?q?ty=20and=20consistency=20=F0=9F=90=9B=20fix(nodeToolbarComponen?= =?UTF-8?q?t):=20fix=20documentation=20link=20not=20working=20when=20no=20?= =?UTF-8?q?documentation=20is=20provided=20The=20button=20colors=20and=20i?= =?UTF-8?q?cons=20have=20been=20updated=20to=20improve=20visibility=20and?= =?UTF-8?q?=20consistency.=20The=20delete=20and=20copy=20buttons=20now=20h?= =?UTF-8?q?ave=20a=20darker=20background=20color=20when=20hovered=20over.?= =?UTF-8?q?=20The=20edit=20button=20now=20has=20a=20rounded=20right=20corn?= =?UTF-8?q?er=20and=20a=20lighter=20background=20color=20when=20there=20ar?= =?UTF-8?q?e=20no=20nodes=20present.=20The=20documentation=20button=20now?= =?UTF-8?q?=20shows=20a=20"Coming=20Soon"=20tooltip=20when=20no=20document?= =?UTF-8?q?ation=20is=20provided=20and=20has=20a=20muted=20color.=20The=20?= =?UTF-8?q?documentation=20link=20now=20works=20correctly=20even=20when=20?= =?UTF-8?q?no=20documentation=20is=20provided.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/nodeToolbarComponent/index.tsx | 81 +++++++++++++------ 1 file changed, 56 insertions(+), 25 deletions(-) diff --git a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx index 70d1268f0..7bc392e14 100644 --- a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx @@ -1,5 +1,5 @@ import { useContext, useState } from "react"; -import { Settings2, Copy, Trash2 } from "lucide-react"; +import { Settings2, Copy, Trash2, FileText } from "lucide-react"; import { classNames } from "../../../../utils"; import { TabsContext } from "../../../../contexts/tabsContext"; import { useReactFlow } from "reactflow"; @@ -29,23 +29,21 @@ const NodeToolbarComponent = (props) => { <>
- + - + - {nodeLength > 0 && ( - - - - )} + } + }} + > + + + + + + + {/* -