From 022b9b76b1fb45b14faf297c2480a993ff96fd24 Mon Sep 17 00:00:00 2001 From: Matt Fiddaman Date: Thu, 21 Nov 2024 22:36:19 +0000 Subject: [PATCH] Allow the report table columns to grow to fill available space (#3872) * allow report table columns to grow to fit * note --- .../reports/graphs/tableGraph/ReportTableHeader.tsx | 1 + .../components/reports/graphs/tableGraph/ReportTableRow.tsx | 1 + upcoming-release-notes/3872.md | 6 ++++++ 3 files changed, 8 insertions(+) create mode 100644 upcoming-release-notes/3872.md diff --git a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableHeader.tsx b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableHeader.tsx index 0b7eb0790f2..7066ebdba28 100644 --- a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableHeader.tsx +++ b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableHeader.tsx @@ -70,6 +70,7 @@ export function ReportTableHeader({ style={{ width: compact ? 80 : 125, flexShrink: 0, + flexGrow: 1, }} valueStyle={compactStyle} value={ diff --git a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableRow.tsx b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableRow.tsx index 2bfce1c38fd..b4e536ef298 100644 --- a/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableRow.tsx +++ b/packages/desktop-client/src/components/reports/graphs/tableGraph/ReportTableRow.tsx @@ -123,6 +123,7 @@ export const ReportTableRow = memo( style={{ width: compact ? 80 : 125, flexShrink: 0, + flexGrow: 1, }} valueStyle={compactStyle} /> diff --git a/upcoming-release-notes/3872.md b/upcoming-release-notes/3872.md new file mode 100644 index 00000000000..36b7eb872a9 --- /dev/null +++ b/upcoming-release-notes/3872.md @@ -0,0 +1,6 @@ +--- +category: Enhancements +authors: [matt-fidd] +--- + +Allow report table columns to grow to fit available space