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 <gabriel@langflow.org>
This commit is contained in:
parent
14773bb391
commit
6f04e5783c
3 changed files with 3 additions and 6 deletions
|
|
@ -161,7 +161,6 @@ export default function TableNodeComponent({
|
||||||
setSelectedNodes(event.api.getSelectedNodes());
|
setSelectedNodes(event.api.getSelectedNodes());
|
||||||
}}
|
}}
|
||||||
rowSelection={table_options?.block_select ? undefined : "multiple"}
|
rowSelection={table_options?.block_select ? undefined : "multiple"}
|
||||||
suppressRowClickSelection={true}
|
|
||||||
editable={editable}
|
editable={editable}
|
||||||
pagination={!table_options?.hide_options}
|
pagination={!table_options?.hide_options}
|
||||||
addRow={addRow}
|
addRow={addRow}
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,9 @@ import ForwardedIconComponent from "@/components/common/genericIconComponent";
|
||||||
import TableComponent, {
|
import TableComponent, {
|
||||||
TableComponentProps,
|
TableComponentProps,
|
||||||
} from "@/components/core/parameterRenderComponent/components/tableComponent";
|
} from "@/components/core/parameterRenderComponent/components/tableComponent";
|
||||||
import { Button } from "@/components/ui/button";
|
|
||||||
import { TableOptionsTypeAPI } from "@/types/api";
|
import { TableOptionsTypeAPI } from "@/types/api";
|
||||||
import { DialogClose } from "@radix-ui/react-dialog";
|
|
||||||
import { AgGridReact } from "ag-grid-react";
|
import { AgGridReact } from "ag-grid-react";
|
||||||
import { ElementRef, ForwardedRef, forwardRef } from "react";
|
import { ForwardedRef, forwardRef } from "react";
|
||||||
import BaseModal from "../baseModal";
|
import BaseModal from "../baseModal";
|
||||||
|
|
||||||
interface TableModalProps extends TableComponentProps {
|
interface TableModalProps extends TableComponentProps {
|
||||||
|
|
|
||||||
|
|
@ -562,8 +562,8 @@ export function FormatColumns(columns: ColumnField[]): ColDef<any>[] {
|
||||||
};
|
};
|
||||||
if (col.formatter !== FormatterType.text || col.edit_mode !== "inline") {
|
if (col.formatter !== FormatterType.text || col.edit_mode !== "inline") {
|
||||||
if (col.edit_mode === "popover") {
|
if (col.edit_mode === "popover") {
|
||||||
newCol.wrapText = true;
|
newCol.wrapText = false;
|
||||||
newCol.autoHeight = true;
|
newCol.autoHeight = false;
|
||||||
newCol.cellEditor = "agLargeTextCellEditor";
|
newCol.cellEditor = "agLargeTextCellEditor";
|
||||||
newCol.cellEditorPopup = true;
|
newCol.cellEditorPopup = true;
|
||||||
newCol.cellEditorParams = {
|
newCol.cellEditorParams = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue