Skip to content

A local-first personal finance app

Allow the report table columns to grow to fill available space (#3872)

Matt Fiddaman022b9b76b1fb
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 0b7eb0790f..7066ebdba2 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 2bfce1c38f..b4e536ef29 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 0000000000..36b7eb872a
--- /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