Skip to content

Build your personal knowledge base with Trilium Notes

feat(sql_console): reduce column width

Elian Doranc6896a4b33be
diff --git a/apps/client/src/widgets/type_widgets/SqlConsole.tsx b/apps/client/src/widgets/type_widgets/SqlConsole.tsx
index 0c6651d806..c66473fb5d 100644
--- a/apps/client/src/widgets/type_widgets/SqlConsole.tsx
+++ b/apps/client/src/widgets/type_widgets/SqlConsole.tsx
@@ -63,7 +63,10 @@ function SqlResultTable({ rows }: { rows: object[] }) {
columns={[
...Object.keys(rows[0]).map(key => ({
title: key,
- field: key
+ field: key,
+ minWidth: 100,
+ maxWidth: 400,
+ widthGrow: 1
}))
]}
data={rows}