omi icon indicating copy to clipboard operation
omi copied to clipboard

Apps: category rows 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

Each Apps category section is a fixed height: rows are 85 pt and the title band 60 pt, whatever the text size. With larger text, each app card's name / category / rating column no longer fits its row.

To reproduce

  1. iOS Settings → Display & Brightness → Text Size: one or two steps larger (or Accessibility → Larger Text).
  2. Open Apps.

Current behavior

Measured with a widget test on main (390 pt wide, real fonts, three apps with ratings): each card overflows at the bottom by 6.3 pt at 1.15×, 17 pt at 1.3× and 31 pt at 1.5× text. There are no errors at 1.0×.

Expected behavior

Rows grow with the text (the card width can stay the same).

Evidence

Suggested fix

Derive the row and title heights from the scaled text heights, and keep the aspect ratio from those.

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 #21340.

  • Scaled argetItemHeight dynamically with MediaQuery.textScalerOf(context) over the card text line heights (ody, ootnote, caption).
  • Scaled itleSectionHeight dynamically with OmiType.title2.
  • Dynamically adjusted childAspectRatio = targetItemHeight / (85.0 / 0.28) so app cards preserve their width while expanding vertically.
  • Added hermetic regression widget test across 1.0x, 1.15x, 1.3x, and 1.5x text scales (pps_category_section_large_text_test.dart) and unreleased changelog fragment.

Dragonire9 avatar Oct 12 '26 19:10 Dragonire9