Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: table resize (#3227)

Yevhen Shevchenko5c83d133a2fb
diff --git a/frontend/src/container/QueryTable/config.ts b/frontend/src/container/QueryTable/config.ts
new file mode 100644
index 0000000000..6fd3312147
--- /dev/null
+++ b/frontend/src/container/QueryTable/config.ts
@@ -0,0 +1,3 @@
+import { CSSProperties } from 'styled-components';
+
+export const QUERY_TABLE_CONFIG: CSSProperties = { width: 145 };
diff --git a/frontend/src/lib/query/createTableColumnsFromQuery.ts b/frontend/src/lib/query/createTableColumnsFromQuery.ts
index bf95335016..4e830ce641 100644
--- a/frontend/src/lib/query/createTableColumnsFromQuery.ts
+++ b/frontend/src/lib/query/createTableColumnsFromQuery.ts
@@ -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 =>