You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Developer settings: API and MCP section buttons overflow in German and French and at larger text #19240
Involves data loss, failed capture, or broken sync/trust
Describe the bug
The "Developer API" and "MCP" section headers put two compact buttons ("Docs" and "+ Create Key") in a
non-wrapping Row as OmiSectionHeader.trailing. In longer languages or at larger text sizes the row is wider
than the screen.
To reproduce
Set the app language to German or French (or a larger text size) on a 320–375 pt wide iPhone.
Settings → Developer.
Current behavior
A widget test of the header on main (bundled SF Pro Display for the button labels, 16 pt page padding) found
these right-edge overflows:
width
1.0× de
1.0× fr
1.3× en
1.3× de
1.3× fr
320 pt
50
14
—
120
73
360 pt
10
—
—
80
33
375 pt
—
—
—
65
18
Expected behavior
The buttons wrap below the title (or onto a second line) instead of overflowing.
Adaptive Header Wrapping: Updated OmiSectionHeader to use a responsive Wrap layout for title and trailing widgets, allowing action controls to drop below the title rather than overflowing horizontally on narrow viewports or under larger text scales.
Section Action Wrapping: Converted the trailing action rows in DeveloperApiKeysSection and DeveloperMcpSection to Wrap with unified spacing (OmiSpacing.xs).
Hermetic Tests: Added developer_section_overflow_test.dart asserting that the Developer API and MCP sections render without layout overflow on 320 pt viewports across English, German, and French at 1.3× text scale, and verifying OmiSectionHeader wrapping under constrained widths.
Activity
test(app): regression tests for BasedHardware#19238, BasedHardware#19239
test(app): regression tests for BasedHardware#19238, BasedHardware#19239
Dragonire9 commentedon Oct 12, 2026
Fixed in #21321.
Overview of Fix
OmiSectionHeaderto use a responsiveWraplayout for title and trailing widgets, allowing action controls to drop below the title rather than overflowing horizontally on narrow viewports or under larger text scales.DeveloperApiKeysSectionandDeveloperMcpSectiontoWrapwith unified spacing (OmiSpacing.xs).developer_section_overflow_test.dartasserting that the Developer API and MCP sections render without layout overflow on 320 pt viewports across English, German, and French at 1.3× text scale, and verifyingOmiSectionHeaderwrapping under constrained widths.fix(ui): wrap OmiSectionHeader title and trailing control to prevent …
fix(settings): wrap developer API section action buttons (BasedHardwa…
fix(settings): wrap developer MCP section action buttons (BasedHardwa…
test(settings): add regression test for developer API and MCP button …
docs(changelog): add unreleased fragment for developer section button…
fix(settings): allow injecting DevApiKeyProvider and assert vertical …