diff --git a/frontend/src/shared/ui/components/KsDataGrid.vue b/frontend/src/shared/ui/components/KsDataGrid.vue index 2bb5bfeb..dee22d00 100644 --- a/frontend/src/shared/ui/components/KsDataGrid.vue +++ b/frontend/src/shared/ui/components/KsDataGrid.vue @@ -22,6 +22,9 @@ const rowSelectionOptions = computed(() => props.rowSelection === 'none' ? undef function onRowClicked(event: RowClickedEvent): void { if (event.data) emit('rowSelected', event.data) } +function onGridReady(params: { api: { sizeColumnsToFit: () => void } }): void { + params.api.sizeColumnsToFit() +}