File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
src/browser/components/ui Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -30,19 +30,25 @@ const Switch = React.forwardRef<HTMLButtonElement, SwitchProps>(
3030 disabled = { disabled }
3131 onClick = { ( ) => onCheckedChange ( ! checked ) }
3232 className = { cn (
33- "inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors " ,
33+ "inline-flex shrink-0 cursor-pointer items-center justify-center rounded-full " ,
3434 "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background" ,
3535 "disabled:cursor-not-allowed disabled:opacity-50" ,
36- checked ? "bg-accent" : "bg-zinc-600" ,
3736 className
3837 ) }
3938 >
4039 < span
4140 className = { cn (
42- "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform " ,
43- checked ? "translate-x-5 " : "translate-x-0 "
41+ "pointer-events-none inline-flex h-6 w-11 items-center rounded-full border-2 border-transparent transition-colors " ,
42+ checked ? "bg-accent " : "bg-zinc-600 "
4443 ) }
45- />
44+ >
45+ < span
46+ className = { cn (
47+ "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform" ,
48+ checked ? "translate-x-5" : "translate-x-0"
49+ ) }
50+ />
51+ </ span >
4652 </ button >
4753 ) ;
4854 }
You can’t perform that action at this time.
0 commit comments