From e61eba4745f30e9dcd5425cc4a476c2bad7a11fe Mon Sep 17 00:00:00 2001 From: raphaelpra <3457781+raphaelpra@users.noreply.github.com> Date: Sun, 11 Oct 2026 04:59:19 +0200 Subject: [PATCH] fix(web): switch thumbs stay in their track while scrolling (#15240) Co-authored-by: Claude Opus 5.5 (1M context) --- apps/web/src/components/ui/menu.tsx | 2 +- apps/web/src/components/ui/switch.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/ui/menu.tsx b/apps/web/src/components/ui/menu.tsx index e5fa3128f71d14290ee649060791199c68cf708e..12e621963dc417325ccd55a8a93513c035fd64e7 100644 --- a/apps/web/src/components/ui/menu.tsx +++ b/apps/web/src/components/ui/menu.tsx @@ -148,7 +148,7 @@ function MenuCheckboxItem({ className="inset-shadow-[0_1px_--theme(--color-black/4%)] inline-flex h-[calc(var(--thumb-size)+2px)] w-[calc(var(--thumb-size)*2-2px)] shrink-0 items-center rounded-full p-px outline-none transition-[background-color,box-shadow] duration-200 [--thumb-size:--spacing(4)] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background data-checked:bg-primary data-unchecked:bg-input data-disabled:opacity-64 sm:[--thumb-size:--spacing(3)]" keepMounted > - + ) : ( diff --git a/apps/web/src/components/ui/switch.tsx b/apps/web/src/components/ui/switch.tsx index e5066b87aa66972d93ac6a64db10b0f072d71856..c982f031ce7f040a38c25e1bbc00c190f09f76d9 100644 --- a/apps/web/src/components/ui/switch.tsx +++ b/apps/web/src/components/ui/switch.tsx @@ -35,7 +35,7 @@ function Switch({ >