fix(android): wrap HUD column and action button row on narrow viewport
The v0.22.3 hardware screenshot showed the 6-button action row (~510 px when laid out) overflowing into a 360 dp viewport from the right anchor, with Menu and Undo clipped off-screen left and Pause/Help/Modes/New_Game overlapping the left HUD column's Score / Moves / Timer text. Cap both clusters at `max_width: 50 %` so on mobile each takes half the viewport (~180 px) and on desktop the cap is wider than either cluster's natural width so the existing single-line layout is preserved. - Action button row: adds `flex_wrap: Wrap`, `row_gap`, and `justify_content: FlexEnd` so the row breaks to multiple right-aligned lines instead of clipping. 6 buttons become 2-3 lines of 2-3 buttons. - HUD column tier rows: add `flex_wrap: Wrap` and `row_gap` to the shared `row_node` helper so a long Mode/Challenge/Draw-cycle combo soft-wraps onto two lines instead of pushing into the action button column. Closes P0 #2 of docs/android/PLAYABILITY_TODO.md. All 854 engine tests pass; clippy clean. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -36,9 +36,14 @@ rewrites required.
|
||||
change-detection fix-up system re-applies `base_top + insets.top`
|
||||
whenever the resource updates. Bottom inset is captured but not
|
||||
yet consumed (waits for bottom-anchored UI).
|
||||
- [ ] **Mobile HUD layout.** Wrap to two rows, drop redundant text, or
|
||||
move secondary actions (Help, Modes) into a hamburger / drawer.
|
||||
Current single-row layout requires desktop width.
|
||||
- [x] **Mobile HUD layout.** *Closed 2026-05-10.* Both the left HUD
|
||||
column and the right action button row are now capped at
|
||||
`max_width: 50 %` and the button row + tier-row child Nodes carry
|
||||
`flex_wrap: Wrap`. On a 360 dp viewport the 6-button row breaks
|
||||
to multiple lines (right-justified) and the tier rows wrap
|
||||
individually instead of overflowing into the action column. On
|
||||
desktop (≥ 1280 px) the 50 % cap is wider than any natural row
|
||||
width so the existing single-line layout is unchanged.
|
||||
- [x] **Card-back asset not rendering.** *Closed 2026-05-10 by
|
||||
`fcc7337`.* `AssetPlugin::file_path = "../assets"` was set
|
||||
unconditionally to fix the desktop `cargo run -p solitaire_app`
|
||||
|
||||
Reference in New Issue
Block a user