Elffuss BraidHub

kikocis/continue public

fix toggle switch styling
Changesetab14a5459f1bc6222fc8f9505cb7589f219a19b0c4883f06a0675894d1cdfe0e
Authoruinstinct <61635505+uinstinct@users.noreply.github.com> · 2025-07-15 12:42 +05:30
Committeruinstinct <61635505+uinstinct@users.noreply.github.com> · 2025-07-15 12:49 +05:30
Parents10ed2343a94a

Browse the files at this changeset

1 file changed

modified gui/src/components/gui/Switch.tsx +9 −9
@@ -26,7 +26,7 @@
2626 <div className="flex flex-row items-center gap-1">
2727 {isToggled && !!showIfToggled && showIfToggled}
2828 <div
29- className={`border-vsc-input-border bg-vsc-input-background flex items-center rounded-full border border-solid`}
29+ className={`border-vsc-input-border bg-vsc-input-background relative flex items-center rounded-full border border-solid`}
3030 onClick={disabled ? undefined : onToggle}
3131 style={{
3232 height: size,
@@ -34,14 +34,14 @@
3434 padding: size / 8,
3535 }}
3636 >
37- <div className="relative h-full w-full">
38- <div
39- className={`absolute left-1/4 top-0 h-full w-1/2 transform rounded-full border-[0.2px] border-solid transition-all ${isToggled ? "translate-x-1/2 brightness-150" : "-translate-x-1/2 brightness-75"}`}
40- style={{
41- backgroundColor: isToggled ? vscButtonBackground : "",
42- }}
43- />
44- </div>
37+ <div
38+ className={`absolute left-1/4 transform rounded-full border-[0.2px] border-solid transition-all ${isToggled ? "translate-x-1/2 brightness-150" : "-translate-x-1/2 brightness-75"}`}
39+ style={{
40+ backgroundColor: isToggled ? vscButtonBackground : "",
41+ height: size,
42+ width: size,
43+ }}
44+ />
4545 </div>
4646 </div>
4747 </div>