Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(ui): remove oversized min-h/min-w constraints from ToggleSwitch

Adam Eivya3182071b3f0
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 60df9d739a..3f2258b1da 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -1,3 +1,7 @@
## Added
- Time Capsule Snapshots for Digital Twin — create versioned archives of your complete digital twin (documents, traits, goals, genome, autobiography, test history) to track identity evolution over time. Includes create, view, compare, and delete functionality with a dedicated tab at `/digital-twin/time-capsule`
+
+## Fixed
+
+- Toggle switches rendering oversized due to min-h/min-w 44px touch-target constraints inflating the visual element
diff --git a/client/src/components/ToggleSwitch.jsx b/client/src/components/ToggleSwitch.jsx
index 5a034afd2f..cb6647bd14 100644
--- a/client/src/components/ToggleSwitch.jsx
+++ b/client/src/components/ToggleSwitch.jsx
@@ -19,7 +19,7 @@ export default function ToggleSwitch({ enabled, onChange, disabled, ariaLabel, s
<button
onClick={onChange}
disabled={disabled}
- className={`relative inline-flex ${s.track} items-center rounded-full transition-colors shrink-0 min-h-[44px] min-w-[44px] ${
+ className={`relative inline-flex ${s.track} items-center rounded-full transition-colors shrink-0 ${
enabled ? activeColor : 'bg-gray-600'
} ${disabled ? 'opacity-50' : ''} ${className}`}
aria-label={ariaLabel}