mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 06:05:58 +08:00
fix: table resize (#3227)
This commit is contained in:
parent
5469cd34fa
commit
5c83d133a2
3
frontend/src/container/QueryTable/config.ts
Normal file
3
frontend/src/container/QueryTable/config.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
import { CSSProperties } from 'styled-components';
|
||||||
|
|
||||||
|
export const QUERY_TABLE_CONFIG: CSSProperties = { width: 145 };
|
@ -5,6 +5,7 @@ import {
|
|||||||
initialQueryBuilderFormValues,
|
initialQueryBuilderFormValues,
|
||||||
} from 'constants/queryBuilder';
|
} from 'constants/queryBuilder';
|
||||||
import { FORMULA_REGEXP } from 'constants/regExp';
|
import { FORMULA_REGEXP } from 'constants/regExp';
|
||||||
|
import { QUERY_TABLE_CONFIG } from 'container/QueryTable/config';
|
||||||
import { QueryTableProps } from 'container/QueryTable/QueryTable.intefaces';
|
import { QueryTableProps } from 'container/QueryTable/QueryTable.intefaces';
|
||||||
import { ReactNode } from 'react';
|
import { ReactNode } from 'react';
|
||||||
import {
|
import {
|
||||||
@ -453,6 +454,7 @@ const generateTableColumns = (
|
|||||||
const column: ColumnType<RowData> = {
|
const column: ColumnType<RowData> = {
|
||||||
dataIndex: item.dataIndex,
|
dataIndex: item.dataIndex,
|
||||||
title: item.title,
|
title: item.title,
|
||||||
|
width: QUERY_TABLE_CONFIG.width,
|
||||||
render: renderColumnCell && renderColumnCell[item.dataIndex],
|
render: renderColumnCell && renderColumnCell[item.dataIndex],
|
||||||
// sorter: item.sortable
|
// sorter: item.sortable
|
||||||
// ? (a: RowData, b: RowData): number =>
|
// ? (a: RowData, b: RowData): number =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user