fix(settings): prevent toggle switches from shrinking - #540
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_388a179c-7077-4d72-9cff-420c940d1c49) |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The settings toggle switches render at reduced width when paired with long label text, compressing the toggle track (from 44px down to ~20px). This occurs because
.settings-togglelacks flex-basis constraints while positioned in.settings-rowwithdisplay: flex. Addedflex: 0 0 44pxto prevent shrinking and maintain consistent 44px width across all toggles.Note
Low Risk
Single CSS flex constraint on settings toggles; no logic, data, or security impact.
Overview
Fixes settings toggle switches compressing when a row has long label text beside them in flex layout.
Adds
flex: 0 0 44pxon.settings-toggleso the control keeps a fixed 44px width and no longer shrinks (e.g. to ~20px) inside.settings-rowflex rows.Reviewed by Cursor Bugbot for commit 5b9a281. Configure here.