Repository navigation
fix(settings): add padding around dropdown arrows - #1836
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
| Layer / File(s) | Summary |
|---|---|
Reusable select control src/components/SettingsControls.tsx, src/components/SettingsControls.css, DESIGN.md, changelog.d/settings-select-chevron-spacing.md |
Added SettingsSelect, which forwards native select props and children and renders a decorative chevron. The styling reserves space for the chevron and restores the native indicator in forced-colors mode. The design document and changelog describe the control and inset arrow. |
Settings integration and checks src/components/SettingsDialog.tsx, scripts/settings-pages-demo-regression.ts |
Replaced Settings dialog native selects with SettingsSelect while keeping their options and update behavior. Regression checks cover chevron placement, keyboard selection, and forced-colors behavior. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix
Suggested reviewers: devswha
Merge Risk: 
Minimal · up to 6fc3e
-
The dropdown change is mergeable after normal checks; no material user-facing risk is established.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Description check
-
Explanation
The description covers the change, its intent, and validation. It states the purpose (inset chevrons to match text padding, citing T3 Code's padded select indicator), the behavior that stays the same (native selects, OS pickers, keyboard selection, forced-colors indicator), and the validation run (check fast, regression script, desktop and mobile sizes). It includes before/after screenshots. The template asks for a changelog entry in changelog.d/, and the raw summary shows one was added. The description does not mention the changelog, and it does not link an issue. The template's issue link applies to features, and this is a fix, so no link is needed. The changelog mention is optional for this check because the diff includes it.
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 3 files. (3 skipped: 3 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Comment @coderabbitai help to get the list of available commands.
6fc3e84 to
d75f9fe
Compare
|
Rebased onto main
Pushed the conflict-resolution rebase and the separate screenshot-coverage commit together once. No further runtime changes were needed. Review prepared with a code-review agent and checked against the code. The merge decision stays with the maintainer's merge pass. |
|
Merge pass review-work report. Overall: PASSED. This is an outside-contributor PR, and the maintainer approved merging it in this pass. The ext-pr-review lane verified it; see its comment above.
The settings dropdowns now have padding around their arrow.
LOW follow-ups:
CodeRabbit did not review this PR (rate-limited or skipped). The reviews above stand in for it. |
main's Settings selects now go through SettingsSelect, which insets the chevron (#1836); the Interface font select was still a bare select, which settings-pages-demo-regression catches.
Inset Settings dropdown chevrons to match the text padding, following T3 Code's padded select indicator.
Keep native selects and OS pickers, keyboard selection, and the native indicator in forced-colors mode. This does not change mobile font sizes.
Validation:
bun run check fastpassed with an isolatedTMPDIR: 6,374 tests passed, 19 skipped.bun scripts/settings-pages-demo-regression.tspassed on desktop and at 320px/390px across all four UI languages, including arrow geometry, keyboard selection and forced colors. The new arrow check fails on the original code. Mobile checks use Chromium emulation, not a physical phone.Desktop before and after, captured from the fictional demo with identical settings at 1280 × 800. Images are hosted separately in the fork and are not part of this PR's diff.
Mobile before and after at 390 × 760.