Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

style(ui): add rounding back to mini toggle component (#2614)

Seamus65d6a6aeb2bd
diff --git a/js/app/packages/core/component/FormControls/MiniToggleSwitch.tsx b/js/app/packages/core/component/FormControls/MiniToggleSwitch.tsx
index 3ff6c57ca7..ed7c056609 100644
--- a/js/app/packages/core/component/FormControls/MiniToggleSwitch.tsx
+++ b/js/app/packages/core/component/FormControls/MiniToggleSwitch.tsx
@@ -90,7 +90,7 @@ export const MiniToggleSwitch: Component<
<KSwitch.Input class="absolute inset-0 !h-full !w-full pointer-events-none" />
<KSwitch.Control class="relative">
<div
- class="relative w-8 h-3 transition-colors duration-80"
+ class="relative w-8 h-3 rounded-full transition-colors duration-80"
classList={{
'bg-edge': !checked(),
'bg-accent': checked(),
@@ -99,7 +99,7 @@ export const MiniToggleSwitch: Component<
>
{/* Toggle thumb */}
<div
- class="absolute top-0.5 w-2 h-2 bg-panel transition-transform duration-80 ease-click"
+ class="absolute top-0.5 w-2 h-2 rounded-full bg-panel transition-transform duration-200 ease-click"
classList={{
'translate-x-0.5': !checked(),
'translate-x-5.5': checked(),