Picker: square chapter and verse buttons, taller book buttons #35
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
schaefera/utStudyBIble!35
Loading…
Reference in a new issue
No description provided.
Delete branch "phase1/picker-height"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
From the phone QC of #11 (#31). In Go to, the chapter and verse buttons were wide but flat, so a thumb hit the row above or below.
height: Math.max(width, page.touch).page.touchhigh.page.touchis 48, which is 6 grid units.main.cppsetsQT_SCALE_FACTORfromGRID_UNIT_PX, so one grid unit is 8 logical pixels. This is the same scale as the page's existingmargin12 andgap8. 48 dp is the common minimum touch target.Closes #31.
Blast radius
Tier: leaf (
qml/pages/PickerPage.qmlonly)Testing tier: standard. Only layout changes: there's no logic, model, memory or start-up change.
Gate / rollback: none needed. Rollback is a revert.
Proof
cargo make app-dockerexit 0 on51f4a6d: qmllint, a -Werror build, clang-tidy, and mem-check in both profiles.51f4a6d.51f4a6dbuild. The journal showsbuild 0.0.1 phase1/picker-height@51f4a6d0e, and jumps made through the picker (Ps 149 → Exod 1, Exod 2 → Ezek 13). The owner said: "Button size is overall much better, particularly the chapter and verse numbers."Review
Reviewer: a fresh-context leaf review, review 225 (COMMENT), on
51f4a6d. It found no high or medium issues.touch: 48is a page constant, not part of theThemesingleton docs/07 asks for, which doesn't exist yet. This is deferred to #12, where night mode and fonts bring that singleton, along withmarginandgap.contentHeightgrows with the cells.Review-Confidence: not audited (leaf). The
Review-Tier: leaftrailer goes in the merge commit message rather than an empty commit (agent-workflow#7), which saves a CI run.🤖 Generated with Claude Code
Fresh-context review (leaf, medium). Commit
51f4a6d0e0, range origin/main...51f4a6d.Files reviewed:
Findings: none at high or medium severity.
What I checked:
Math.max(width, page.touch)andMath.max(implicitHeight, page.touch)have no binding loop, becausewidthis set fromgrids.widthand does not depend on height. All cells in a Grid get the same height, so rows stay aligned. Column and Grid implicit heights follow the children, socontentHeight: grids.height + margingrows correctly. Hidden Grids and Labels in the Column take no space.scaleFromGridUnitsetsQT_SCALE_FACTOR = GRID_UNIT_PX/8, so 48 logical px is 6 grid units, as the PR says. The chapter and verse buttons are at least 48 even on a narrow screen: a 320 dp screen gives about 53 px.books.names(..., typed.text).Low, no action needed:
touch: 48. docs/07 line 21 asks for sizes through one Theme singleton, but none exists yet. Move it there when one lands.WIP: Picker: square chapter and verse buttons, taller book buttonsto Picker: square chapter and verse buttons, taller book buttonsMerge gate (leaf, standard) on
51f4a6d0e0.Checked: