From a07224f30d87cae1eafd9a79c787df0a8de4ff35 Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Tue, 18 Jun 2024 16:35:45 -0300 Subject: [PATCH] refactor: Update TableAutoCellRender component to adjust cell height and width for success and error values --- .../components/tableAutoCellRender/index.tsx | 18 +++--------------- .../src/modals/flowLogsModal/index.tsx | 4 +++- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/src/frontend/src/components/tableComponent/components/tableAutoCellRender/index.tsx b/src/frontend/src/components/tableComponent/components/tableAutoCellRender/index.tsx index 4fb01b7ca..14e191976 100644 --- a/src/frontend/src/components/tableComponent/components/tableAutoCellRender/index.tsx +++ b/src/frontend/src/components/tableComponent/components/tableAutoCellRender/index.tsx @@ -30,7 +30,7 @@ export default function TableAutoCellRender({ variant="outline" size="sq" className={cn( - "min-w-min bg-success-background text-success-foreground hover:bg-success-background", + "h-[18px] w-full justify-center bg-success-background text-success-foreground hover:bg-success-background", )} > {value} @@ -42,22 +42,10 @@ export default function TableAutoCellRender({ variant="outline" size="sq" className={cn( - "min-w-min bg-error-background text-error-foreground hover:bg-error-background", + "h-[18px] w-full justify-center bg-error-background text-error-foreground hover:bg-error-background", )} > - Success - - ); - } else if (value === "failure") { - return ( - - Failure + {value} ); } else { diff --git a/src/frontend/src/modals/flowLogsModal/index.tsx b/src/frontend/src/modals/flowLogsModal/index.tsx index 02f083234..900fb26be 100644 --- a/src/frontend/src/modals/flowLogsModal/index.tsx +++ b/src/frontend/src/modals/flowLogsModal/index.tsx @@ -24,13 +24,15 @@ export default function FlowLogsModal({ }); }, [open]); + console.log(rows); + return (
Logs - +