diff --git a/src/frontend/src/components/tableComponent/index.tsx b/src/frontend/src/components/tableComponent/index.tsx index 3404444c5..7e2cd4b99 100644 --- a/src/frontend/src/components/tableComponent/index.tsx +++ b/src/frontend/src/components/tableComponent/index.tsx @@ -5,7 +5,6 @@ import { ComponentPropsWithoutRef, ElementRef, forwardRef } from "react"; import { useDarkStore } from "../../stores/darkStore"; import "../../style/ag-theme-shadcn.css"; // Custom CSS applied to the grid import { cn } from "../../utils/utils"; -import { Card, CardContent } from "../ui/card"; const TableComponent = forwardRef< ElementRef, @@ -14,23 +13,13 @@ const TableComponent = forwardRef< const dark = useDarkStore((state) => state.dark); return ( -
-
- - - - - -
+
+
); }); diff --git a/src/frontend/src/pages/SettingsPage/pages/GlobalVariablesPage/index.tsx b/src/frontend/src/pages/SettingsPage/pages/GlobalVariablesPage/index.tsx index 2ca48050b..34df9786c 100644 --- a/src/frontend/src/pages/SettingsPage/pages/GlobalVariablesPage/index.tsx +++ b/src/frontend/src/pages/SettingsPage/pages/GlobalVariablesPage/index.tsx @@ -8,6 +8,7 @@ import Dropdown from "../../../../components/dropdownComponent"; import ForwardedIconComponent from "../../../../components/genericIconComponent"; import TableComponent from "../../../../components/tableComponent"; import { Badge } from "../../../../components/ui/badge"; +import { Card, CardContent } from "../../../../components/ui/card"; import { deleteGlobalVariable } from "../../../../controllers/API"; import useAlertStore from "../../../../stores/alertStore"; import { useGlobalVariablesStore } from "../../../../stores/globalVariables"; @@ -104,6 +105,7 @@ export default function GlobalVariablesPage() { field: "default_fields", flex: 1, editable: false, + resizable: false, }, ]); @@ -168,17 +170,24 @@ export default function GlobalVariablesPage() {
- { - setSelectedRows(event.api.getSelectedRows().map((row) => row.name)); - }} - rowSelection="multiple" - suppressRowClickSelection={true} - domLayout="autoHeight" - pagination={false} - columnDefs={colDefs} - rowData={rowData} - /> + + + { + setSelectedRows( + event.api.getSelectedRows().map((row) => row.name), + ); + }} + rowSelection="multiple" + suppressRowClickSelection={true} + domLayout="autoHeight" + pagination={true} + columnDefs={colDefs} + rowData={rowData} + /> + +
);