From b96eb4715dedd9cde78c3c6548ea44a09b59cc16 Mon Sep 17 00:00:00 2001 From: igorrCarvalho Date: Mon, 6 May 2024 19:13:35 -0300 Subject: [PATCH] Refactor: Disable AgGridReact table resize option --- .../pages/GlobalVariablesPage/index.tsx | 2 ++ .../pages/ShortcutsPage/index.tsx | 21 ++++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/pages/SettingsPage/pages/GlobalVariablesPage/index.tsx b/src/frontend/src/pages/SettingsPage/pages/GlobalVariablesPage/index.tsx index 0ecdd588b..a3501027d 100644 --- a/src/frontend/src/pages/SettingsPage/pages/GlobalVariablesPage/index.tsx +++ b/src/frontend/src/pages/SettingsPage/pages/GlobalVariablesPage/index.tsx @@ -83,6 +83,7 @@ export default function GlobalVariablesPage() { headerName: "Variable Name", field: "name", flex: 2, + resizable: false, }, //This column will be twice as wide as the others { field: "type", @@ -93,6 +94,7 @@ export default function GlobalVariablesPage() { }, flex: 1, editable: false, + resizable: false, }, // { // field: "value", diff --git a/src/frontend/src/pages/SettingsPage/pages/ShortcutsPage/index.tsx b/src/frontend/src/pages/SettingsPage/pages/ShortcutsPage/index.tsx index 158bf2394..fe4ba7466 100644 --- a/src/frontend/src/pages/SettingsPage/pages/ShortcutsPage/index.tsx +++ b/src/frontend/src/pages/SettingsPage/pages/ShortcutsPage/index.tsx @@ -20,11 +20,18 @@ export default function ShortcutsPage() { // Column Definitions: Defines the columns to be displayed. const [colDefs, setColDefs] = useState<(ColDef | ColGroupDef)[]>([ - { headerName: "Functionality", field: "name", flex: 1, editable: false }, //This column will be twice as wide as the others + { + headerName: "Functionality", + field: "name", + flex: 1, + editable: false, + resizable: false, + }, //This column will be twice as wide as the others { field: "shortcut", flex: 2, editable: false, + resizable: false, }, ]); @@ -32,50 +39,62 @@ export default function ShortcutsPage() { { name: "Advanced Settings Component", shortcut: advancedShortcut, + resizable: false, }, { name: "Minimize Component", shortcut: minizmizeShortcut, + resizable: false, }, { name: "Code Component", shortcut: codeShortcut, + resizable: false, }, { name: "Copy Component", shortcut: copyShortcut, + resizable: false, }, { name: "Duplicate Component", shortcut: duplicateShortcut, + resizable: false, }, { name: "Share Component", shortcut: shareShortcut, + resizable: false, }, { name: "Docs Component", shortcut: docsShortcut, + resizable: false, }, { name: "Save Component", shortcut: saveShortcut, + resizable: false, }, { name: "Delete Component", shortcut: deleteShortcut, + resizable: false, }, { name: "Open Playground", shortcut: interactionShortcut, + resizable: false, }, { name: "Undo", shortcut: undoShortcut, + resizable: false, }, { name: "Redo", shortcut: redoShortcut, + resizable: false, }, ]);