omi icon indicating copy to clipboard operation
omi copied to clipboard

AI app generator: suggestion cards overflow at larger text sizes

Open Itaxh1 opened this issue 2 months ago • 1 comments

Product impact

  • Primary loop layer: UX-Polish
  • [ ] Involves data loss, failed capture, or broken sync/trust

Describe the bug

The "Try something like" strip is a fixed 160 pt high. Each card holds up to three lines of callout text at line height 1.4 plus a compact "Try it" button, inside 20 pt padding, so with larger text the column overflows.

To reproduce

  1. Set a larger iOS text size.
  2. Settings → Developer → create an app with AI (the AI app generator page).

Current behavior

The same card in its 160 pt strip, in a widget test on main with real fonts: it overflows at the bottom by 6 pt at 1.15×, 15 pt at 1.3× and 30 pt at 1.5× text. There are no errors at 1.0×.

Expected behavior

The strip grows with the text size (or the card content scales down).

Evidence

Fix available

Fixed with a regression test on the fork branch design/v2-step0-tokens (394b5a7e8e). 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.

Itaxh1 avatar Sep 26 '26 17:09 Itaxh1

Fixed in #21341.

  • Scaled the "Try something like" suggestion strip height dynamically with MediaQuery.textScalerOf(context) (160 * math.max(1.0, MediaQuery.textScalerOf(context).scale(16) / 16)).
  • Added hermetic regression test across 1.0x, 1.15x, 1.3x, and 1.5x text scales (ai_app_generator_large_text_test.dart) and unreleased changelog fragment.

Dragonire9 avatar Oct 12 '26 20:10 Dragonire9