Skip to content

fix(desktop): switches show their knob again - #25

Merged
RealDoc06 merged 3 commits into
mainfrom
fix/desktop-toggle-knob
Nov 23, 2026
Merged

RealDoc06 merged 3 commits into
mainfrom
fix/desktop-toggle-knob

Conversation

@RealDoc06

@RealDoc06 RealDoc06 commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

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.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Toggle thumb now uses left-edge positioning. Its checked-state translation changes from 15px to 16px, and its unchecked translation remains 2px.

Changes: Toggle thumb positioning

Layer / File(s) Summary
Update thumb positioning
apps/desktop/src/components/ui.tsx
The thumb is positioned from the left edge. The checked-state translation changes to 16px; the unchecked translation remains 2px.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Merge Risk: Minimal · up to 15d03

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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • 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.

@RealDoc06
RealDoc06 merged commit 6d53519 into main Nov 23, 2026
7 checks 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.

1 participant