From 1061b4460df71e85e8628beab54d63051ce17a96 Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Fri, 23 Oct 2026 12:48:38 +0100 Subject: [PATCH] fix(app): run detail tabs line up with the header inset --- app/lib/features/runs/ui/run_detail_tab_strip.dart | 3 +++ app/test/features/runs/ui/run_detail_tabs_test.dart | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/app/lib/features/runs/ui/run_detail_tab_strip.dart b/app/lib/features/runs/ui/run_detail_tab_strip.dart index a5126e93..a477b94b 100644 --- a/app/lib/features/runs/ui/run_detail_tab_strip.dart +++ b/app/lib/features/runs/ui/run_detail_tab_strip.dart @@ -84,6 +84,9 @@ class _RunDetailTabStripState extends State { ); Widget _cupertinoControl() => CupertinoSegmentedControl( + // The strip already insets 16; the control's own default inset would put + // the tabs out of line with the header and body text. + padding: EdgeInsets.zero, groupValue: widget.selected, onValueChanged: widget.onSelected, children: { diff --git a/app/test/features/runs/ui/run_detail_tabs_test.dart b/app/test/features/runs/ui/run_detail_tabs_test.dart index 01d6db25..92eb7fa3 100644 --- a/app/test/features/runs/ui/run_detail_tabs_test.dart +++ b/app/test/features/runs/ui/run_detail_tabs_test.dart @@ -37,6 +37,11 @@ void main() { previous = center.dx; } expect(find.byKey(runTitleActionKey), findsOneWidget); + // The strip lines up with the header's 16px inset on both hosts. + expect( + tester.getTopLeft(find.byKey(const Key('run-detail-tabs'))).dx, + 16, + ); for (final tab in [ RunDetailTab.graph,