Fix Settings toggle switch thumb rendering outside the pill
The thumb span relied on left:auto + a translate-x offset for horizontal position, but the <button>'s native text-align:center UA default (never neutralized by an explicit left) made its auto-resolved static position land near the pill's right edge in both checked states, so the translate pushed it visibly outside the pill instead of sliding within it. Anchor it with an explicit left-0.5 base position instead, matching the standard Tailwind switch recipe, so position no longer depends on the browser's static-position resolution for an auto-positioned box. Co-Authored-By:Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
Showing
Please
register
or
sign in
to comment