From b012641804e4c8f8be84b6e52bc977299480f69a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sat, 16 May 2026 10:45:28 +0200 Subject: [PATCH] fix(settings): tighten the dashboard-layout drag-list rows on mobile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each widget row carried a vertical pair of 44-px arrow buttons — 116-px row, repeated across 15 widgets, ~1 740 px of scroll just for the reorder list. Three times the height of every neighbour on the Settings page. Swap the vertical arrow stack for a horizontal pair on the trailing edge. `size-11 sm:size-9` preserves the 44-px mobile tap target and shrinks to 36-px on desktop where pointer accuracy is high. Row container drops `p-3 gap-3` for `px-3 py-2 gap-2` with `min-h-12` as the height floor — 48 px, 2.4× tighter. Label gains `truncate` + `title` so long widget names stay on a single line. Column-header spacer widens to reserve the new trailing arrow column so the Tile / Chart switches stay column-aligned. The existing `dashboard-layout-section.test.tsx` reads `data-slot` attributes (unchanged), so the four-test suite stays green. --- .../settings/dashboard-layout-section.tsx | 81 ++++++++++++------- 1 file changed, 50 insertions(+), 31 deletions(-) diff --git a/src/components/settings/dashboard-layout-section.tsx b/src/components/settings/dashboard-layout-section.tsx index 10ec46de8..3b445a1ec 100644 --- a/src/components/settings/dashboard-layout-section.tsx +++ b/src/components/settings/dashboard-layout-section.tsx @@ -252,15 +252,23 @@ export function DashboardLayoutSection({ id }: { id: string }) { chart in the lower row. the maintainer wanted independent control of the two surfaces (per feedback_dashboard_top_tiles _selectable.md). */} -
-