Skip to content

Commit 799862f

Browse files
betegonclaude
andcommitted
fix(dashboard): shrink default widget widths so charts pair per row
line, area, and bar widgets defaulted to w=4 (of 6 columns), so two charts could never sit side-by-side (4+4=8>6). Change to w=3 so two fit per row (3+3=6), cutting dashboard vertical scroll roughly in half. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a8729f4 commit 799862f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/types/dashboard.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ const DEFAULT_WIDGET_SIZE: Record<
115115
{ w: number; h: number; minH: number }
116116
> = {
117117
big_number: { w: 2, h: 1, minH: 1 },
118-
line: { w: 4, h: 2, minH: 2 },
119-
area: { w: 4, h: 2, minH: 2 },
120-
bar: { w: 4, h: 2, minH: 2 },
118+
line: { w: 3, h: 2, minH: 2 },
119+
area: { w: 3, h: 2, minH: 2 },
120+
bar: { w: 3, h: 2, minH: 2 },
121121
table: { w: 6, h: 2, minH: 2 },
122122
world_map: { w: 4, h: 2, minH: 2 },
123123
};
124-
const FALLBACK_SIZE = { w: 4, h: 2, minH: 2 };
124+
const FALLBACK_SIZE = { w: 3, h: 2, minH: 2 };
125125

126126
/** Build a set of occupied grid cells and the max bottom edge from existing layouts. */
127127
function buildOccupiedGrid(widgets: DashboardWidget[]): {

0 commit comments

Comments
 (0)