You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(desktop): switches show their knob again - #25
Switches in the Mods list had no visible knob when on, and when off the knob sat on the right, so on and off didn't read like a switch.
The knob is absolutely positioned but had no left, so it started at the center of the track (buttons center their content). On pushed it past the end of the track, where the dark knob disappeared against the row. Anchoring it with left-0 puts it inside the track: left when off, right when on, 2px from the edge either way.
Before
After
Light theme, after:
Proof: reproduced on a Windows 11 debug build, then rebuilt with the fix and captured the same Mods list in dark and light. pnpm build passes.
Reviewed with sol-loop: 1 round with GPT-6.2 Sol. Sol verdict: approved
Created with Claude Opus 5.5 in Claude Code (T3 Code).
Summary by CodeRabbit
Style
Adjusted the toggle switch thumb’s starting alignment to the left edge and refined its position when checked. Its unchecked-state positioning remains unchanged. This is a small visual adjustment to the toggle’s appearance, with no change to its behavior or available controls.
This fixes the Mods list switch knobs so they sit inside the track, on the left when off and on the right when on. The change is a small, localized styling fix with no meaningful merge risk.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the fix and the affected area, "fix(desktop): switches show their knob again". The change moves the Toggle thumb to the left edge (left-0) and adjusts its checked translation from 15px…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the fix and the affected area, "fix(desktop): switches show their knob again". The change moves the Toggle thumb to the left edge (left-0) and adjusts its checked translation from 15px to 16px, so the knob stays inside the track. The title describes the main user-visible result of that change, so it passes.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: ca24fcdd-fe90-4376-a70e-d1b430551254
Commits
Reviewing files that changed from the base of the PR and between 816bf1f and 15d0360.
Files selected for processing: 1
apps/desktop/src/components/ui.tsx
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switches in the Mods list had no visible knob when on, and when off the knob sat on the right, so on and off didn't read like a switch.
The knob is absolutely positioned but had no
left, so it started at the center of the track (buttons center their content). On pushed it past the end of the track, where the dark knob disappeared against the row. Anchoring it withleft-0puts it inside the track: left when off, right when on, 2px from the edge either way.Light theme, after:
Proof: reproduced on a Windows 11 debug build, then rebuilt with the fix and captured the same Mods list in dark and light.
pnpm buildpasses.Reviewed with sol-loop: 1 round with GPT-6.2 Sol. Sol verdict: approved
Created with Claude Opus 5.5 in Claude Code (T3 Code).
Summary by CodeRabbit