fix: table resize (#3227)

This commit is contained in:
Yevhen Shevchenko 2023-07-28 19:14:07 +03:00 committed by GitHub
parent 5469cd34fa
commit 5c83d133a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,3 @@
import { CSSProperties } from 'styled-components';
export const QUERY_TABLE_CONFIG: CSSProperties = { width: 145 };

View File

@ -5,6 +5,7 @@ import {
initialQueryBuilderFormValues,
} from 'constants/queryBuilder';
import { FORMULA_REGEXP } from 'constants/regExp';
import { QUERY_TABLE_CONFIG } from 'container/QueryTable/config';
import { QueryTableProps } from 'container/QueryTable/QueryTable.intefaces';
import { ReactNode } from 'react';
import {
@ -453,6 +454,7 @@ const generateTableColumns = (
const column: ColumnType<RowData> = {
dataIndex: item.dataIndex,
title: item.title,
width: QUERY_TABLE_CONFIG.width,
render: renderColumnCell && renderColumnCell[item.dataIndex],
// sorter: item.sortable
// ? (a: RowData, b: RowData): number =>