From 910d2792ce2e855c979461e1c44d552ab7b99a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=91=E6=9E=97=5FCyril=20Pilgrim?= Date: Thu, 5 Mar 2026 12:06:48 +0800 Subject: [PATCH] feat(ui): implement smooth Apple-style spring animation for toggle switch Motivation: The previous toggle switch animation was abrupt and rigid. The clickable area also spanned the entire row width, which led to unintentional clicks. Implementation: - CSS: Replaced static transitions with cubic-bezier spring physics, hardware-accelerated transforms (translate), and pressed-state squish feedback. - JS: Wrapped the switch in a constrained flex container, replacing the full-width