fix(ui): multi-select footer gap and phone layouts of the New choice menu and Macro builder - #2131
Conversation
Without the custom-value row, the footer's top rule sat on the list's bottom border. The 8px gap now belongs to the list, so it's there whichever row follows. Refs #2128
On a phone Obsidian makes every input and button in a modal's setting row full width, so a row's input and its Add button split it and the placeholders were cut mid-word. Buttons there now take their own width. Refs #2128
…ones A phone's menu rows are one ellipsized line, so each entry was cut mid-word. Desktop keeps the descriptions. Fixes #2128
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe changes adjust phone choice menu titles, macro builder row sizing, and multi-select list spacing. Unit and end-to-end tests cover the updated menu titles and layouts. ChangesPhone and picker layout adjustments
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to The changes shorten phone menu labels and improve macro input sizing and picker spacing. No actionable merge-blocking risk is identified; merge after normal checks pass. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit taps the phone-sized menu, Comment |
Three small layout fixes from the round-8 sweep, one commit each. All three are also in 2.29.0.
1. Multi-select picker footer (1280x800). Without the "Add a custom value" row, the footer's top rule sat flush on the list's bottom border (0px; 8px with the custom row), so the list's rounded corners rested on a straight line. The 8px gap now belongs to the list, so it's there whichever row follows. The checkbox prompt uses its own button row and is unchanged (12px).
Crops of 1280x800 frames (before, after).
2. Macro builder rows on phones (390x844). Obsidian makes every input and button in a phone modal's setting row
width: 100%, so each input and its Add button split the row and the placeholders were cut mid-word ("Obsidian comma", "Select comman", "Start typing scrip"). Buttons in these rows now take their own width and the input takes the rest (inputs 239 to 265px, Add 49px, Browse 75px). Scoped to rows holding the command-sequence input, so it also covers the Conditional branch editor, which uses the same rows.3. New choice menu on phones (390x844). A phone's menu rows are one ellipsized line, about 300px wide, and each "Type, description" title was 377 to 480px, so all three were cut mid-word. On phones the menu now names just the type; desktop keeps the descriptions.
Tests:
tests/e2e/multi-select-layout.test.ts: list to next row is 8px with and without the custom row. Fails on master's CSS (0px).tests/e2e/macro-builder-layout.test.ts: under phone classes, each row's button is under 100px and the input more than twice as wide. Fails on master's CSS (Add 471px).src/gui/choiceList/AddChoiceControls.test.ts: phone titles are just the type names (fails on master); desktop titles keep the descriptions.Checks:
pnpm run build-with-lint,pnpm run test(6606 passed),.agents/run-e2eon a clean vault (401 passed, 24 Templater-only skipped). No release or migration impact.Fixes #2128
Note
Fix multi-select footer gap and phone layouts for choice menu and Macro builder
Macroscope summarized 49f4f67.
Summary by CodeRabbit