From 6f04e5783cc3ceef0666265dd52724c2d8722489 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com> Date: Tue, 21 Jan 2025 22:14:57 -0300 Subject: [PATCH] fix: removed auto height to fix glitch on Edit Tools (#5815) Removed auto height from table node component Co-authored-by: Gabriel Luiz Freitas Almeida --- .../components/TableNodeComponent/index.tsx | 1 - src/frontend/src/modals/tableModal/index.tsx | 4 +--- src/frontend/src/utils/utils.ts | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/frontend/src/components/core/parameterRenderComponent/components/TableNodeComponent/index.tsx b/src/frontend/src/components/core/parameterRenderComponent/components/TableNodeComponent/index.tsx index 5215e2282..db3db4147 100644 --- a/src/frontend/src/components/core/parameterRenderComponent/components/TableNodeComponent/index.tsx +++ b/src/frontend/src/components/core/parameterRenderComponent/components/TableNodeComponent/index.tsx @@ -161,7 +161,6 @@ export default function TableNodeComponent({ setSelectedNodes(event.api.getSelectedNodes()); }} rowSelection={table_options?.block_select ? undefined : "multiple"} - suppressRowClickSelection={true} editable={editable} pagination={!table_options?.hide_options} addRow={addRow} diff --git a/src/frontend/src/modals/tableModal/index.tsx b/src/frontend/src/modals/tableModal/index.tsx index 92984243d..7ed919a16 100644 --- a/src/frontend/src/modals/tableModal/index.tsx +++ b/src/frontend/src/modals/tableModal/index.tsx @@ -2,11 +2,9 @@ import ForwardedIconComponent from "@/components/common/genericIconComponent"; import TableComponent, { TableComponentProps, } from "@/components/core/parameterRenderComponent/components/tableComponent"; -import { Button } from "@/components/ui/button"; import { TableOptionsTypeAPI } from "@/types/api"; -import { DialogClose } from "@radix-ui/react-dialog"; import { AgGridReact } from "ag-grid-react"; -import { ElementRef, ForwardedRef, forwardRef } from "react"; +import { ForwardedRef, forwardRef } from "react"; import BaseModal from "../baseModal"; interface TableModalProps extends TableComponentProps { diff --git a/src/frontend/src/utils/utils.ts b/src/frontend/src/utils/utils.ts index c8ec29b2f..8fbb2c513 100644 --- a/src/frontend/src/utils/utils.ts +++ b/src/frontend/src/utils/utils.ts @@ -562,8 +562,8 @@ export function FormatColumns(columns: ColumnField[]): ColDef[] { }; if (col.formatter !== FormatterType.text || col.edit_mode !== "inline") { if (col.edit_mode === "popover") { - newCol.wrapText = true; - newCol.autoHeight = true; + newCol.wrapText = false; + newCol.autoHeight = false; newCol.cellEditor = "agLargeTextCellEditor"; newCol.cellEditorPopup = true; newCol.cellEditorParams = {