Skip to content

Keep Quick Add and Log within reach above the keyboard - #6

Merged
SilverCrocus merged 2 commits into
mainfrom
fix/quick-add-footer
Nov 19, 2026
Merged

SilverCrocus merged 2 commits into
mainfrom
fix/quick-add-footer

Conversation

@SilverCrocus

@SilverCrocus SilverCrocus commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Closes #4.

Keep Add to plate and Log N items side by side at the bottom of Quick Add while the form scrolls. Add enables when the form has an energy value or enough macro information to calculate one. Log enables after adding the first item. With two or more foods, Save as recipe is available below the Quick Add fields.

Both PRs include the same Rust 1.100 compatibility fix. The compiler flags an unreachable error branch generated by Dioxus when parsing a string in a URL. The warning allowance is scoped to the route definition.

Verification

  • Reproduced on the original build with the Android keyboard open. Add to plate was offscreen for both foods. Only Log was visible after the first addition.
  • On a 360 dp wide Android 17 emulator, entered 125 kcal and 75 kcal. Confirmed both buttons were visible, checked their enabled states, and tapped Add at its on-screen coordinates after each entry. Opened and cancelled Save as recipe, then tapped Log 2 items and verified two log entries totalling 200 kcal.
  • Workspace tests, Clippy, formatting and the WebAssembly build check passed.

Android emulator before and after the footer change, with the numeric keyboard open

The default-tab setting is in #5. Both pull requests target main and can merge in either order.

@SilverCrocus
SilverCrocus merged commit 89993e7 into main Nov 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Anchor both the "Add to plate" and "Log X items" buttons to the bottom when adding multiple foods

1 participant