omi icon indicating copy to clipboard operation
omi copied to clipboard

Settings: opening search makes every row jump 12 pt, and the field sits 4 pt off the cards

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

Tapping the search icon swaps the whole Settings header through an AnimatedSwitcher: the 44 pt header (search icon, title, close) is replaced by a 56 pt search row, so the list under it moves down 12 pt. It moves back when search is cancelled. The field starts 16 pt from the edge while the settings cards start at 20 pt.

To reproduce

  1. Open Settings.
  2. Tap search, then Cancel.

Current behavior

Every row jumps by 12 pt on open and on cancel, and the field is misaligned with the cards. The header heights were measured with copies of both headers from main: 44.0 pt and 56.0 pt, at 1.0× and 1.3× text.

Expected behavior

Search opens in place. The header keeps one height, so nothing below it moves, and the field lines up with the cards.

Evidence

Fix available

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

  • Wrapped both normal and search headers in SizedBox(height: 48) so opening and closing search keeps header height constant and never shifts the settings list below.
  • Adjusted search header left padding to OmiSpacing.lg (20 pt) to align flush with the settings cards.
  • Added hermetic regression widget test (settings_search_header_stability_test.dart) and unreleased changelog fragment.

Dragonire9 avatar Oct 12 '26 20:10 Dragonire9