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,