Skip to content

Developer settings: API and MCP section buttons overflow in German and French and at larger text #19240

Open

Description

@Itaxh1

Product impact

  • Primary loop layer: UX-Polish
  • 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

  1. Set the app language to German or French (or a larger text size) on a 320–375 pt wide iPhone.
  2. 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.

Evidence

Suggested fix

Use a Wrap for the trailing buttons, and let OmiSectionHeader drop its trailing widget under the title when
both don't fit.

Fix available

Fixed with a regression test on the fork branch design/v2-step0-tokens (0d67abff3c). It will be linked from the draft PR.

Found while testing the Omi v2 Flutter restyle on an iPhone, then confirmed against main at 32c2ed22cf.

Activity

  1. added
    capture
    p0
    p3
    ux-polish
    and removed
    p0
    capture
    on Oct 6, 2026
  2. Dragonire9 commented on Oct 12, 2026

    @Dragonire9
    Contributor

    Fixed in #21321.

    Overview of Fix

    • 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    p3ux-polish

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions