From 242cecea0b0ada863f6fd38fa4e3d6acf0c898d6 Mon Sep 17 00:00:00 2001 From: Mike Fortman Date: Thu, 24 Jul 2025 15:18:01 -0500 Subject: [PATCH] fix: Mcp composer tool header fix (#9161) * fix header and button alignment * color enhancement * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- .../components/ToolsComponent/index.tsx | 67 ++++++++----------- .../homePage/components/McpServerTab.tsx | 17 ++++- .../tests/core/features/filterSidebar.spec.ts | 4 +- 3 files changed, 47 insertions(+), 41 deletions(-) diff --git a/src/frontend/src/components/core/parameterRenderComponent/components/ToolsComponent/index.tsx b/src/frontend/src/components/core/parameterRenderComponent/components/ToolsComponent/index.tsx index bcd3fc343..92b4d7d4f 100644 --- a/src/frontend/src/components/core/parameterRenderComponent/components/ToolsComponent/index.tsx +++ b/src/frontend/src/components/core/parameterRenderComponent/components/ToolsComponent/index.tsx @@ -61,47 +61,36 @@ export default function ToolsComponent({ icon={icon} />
-
-
- -
- Flows/Tools -
-
-
- {(visibleActions.length > 0 || isAction) && ( - - )} -
+ {(visibleActions.length > 0 || isAction) && ( + + )} + {!value ? (
{[...Array(4)].map((_, index) => ( diff --git a/src/frontend/src/pages/MainPage/pages/homePage/components/McpServerTab.tsx b/src/frontend/src/pages/MainPage/pages/homePage/components/McpServerTab.tsx index c9732fa24..7343ca9d8 100644 --- a/src/frontend/src/pages/MainPage/pages/homePage/components/McpServerTab.tsx +++ b/src/frontend/src/pages/MainPage/pages/homePage/components/McpServerTab.tsx @@ -390,7 +390,22 @@ const McpServerTab = ({ folderName }: { folderName: string }) => {
-
+
+ +
+ Flows/Tools +
+
+
+