From abbae80b5eece8d83711da70c6a06f5ad0ed339b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 13 Mar 2023 08:12:46 +0100 Subject: [PATCH] TablePanel: Default cell height should be small (#64611) * TablePanel: Default cell height should be small * Component default --- packages/grafana-ui/src/components/Table/Table.tsx | 2 +- public/app/plugins/panel/table/panelcfg.cue | 2 +- public/app/plugins/panel/table/panelcfg.gen.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/grafana-ui/src/components/Table/Table.tsx b/packages/grafana-ui/src/components/Table/Table.tsx index 90d2633025f..69468925ec3 100644 --- a/packages/grafana-ui/src/components/Table/Table.tsx +++ b/packages/grafana-ui/src/components/Table/Table.tsx @@ -57,7 +57,7 @@ export const Table = memo((props: Props) => { showTypeIcons, footerValues, enablePagination, - cellHeight = TableCellHeight.Md, + cellHeight = TableCellHeight.Sm, } = props; const listRef = useRef(null); diff --git a/public/app/plugins/panel/table/panelcfg.cue b/public/app/plugins/panel/table/panelcfg.cue index 563561e380d..9233430d79c 100644 --- a/public/app/plugins/panel/table/panelcfg.cue +++ b/public/app/plugins/panel/table/panelcfg.cue @@ -46,7 +46,7 @@ composableKinds: PanelCfg: { reducer: [] } // Controls the height of the rows - cellHeight?: ui.TableCellHeight | *"md" + cellHeight?: ui.TableCellHeight | *"sm" } @cuetsy(kind="interface") }, ] diff --git a/public/app/plugins/panel/table/panelcfg.gen.ts b/public/app/plugins/panel/table/panelcfg.gen.ts index 85d617bc4ba..7b578df36bf 100644 --- a/public/app/plugins/panel/table/panelcfg.gen.ts +++ b/public/app/plugins/panel/table/panelcfg.gen.ts @@ -44,7 +44,7 @@ export interface PanelOptions { } export const defaultPanelOptions: Partial = { - cellHeight: ui.TableCellHeight.Md, + cellHeight: ui.TableCellHeight.Sm, footer: { /** * Controls whether the footer should be shown