From d07ccf6f63572636a7cf423f1afa7f167e7d81bc Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 8 Mar 2026 00:46:41 +0800 Subject: [PATCH] fix realtime slider thumb styling --- components/canvas/RealtimeCanvasDialog.tsx | 10 ++++++++-- components/ui/slider.tsx | 19 ++++++++++++++----- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/components/canvas/RealtimeCanvasDialog.tsx b/components/canvas/RealtimeCanvasDialog.tsx index 19bc01314..5bb258db1 100644 --- a/components/canvas/RealtimeCanvasDialog.tsx +++ b/components/canvas/RealtimeCanvasDialog.tsx @@ -2426,7 +2426,10 @@ export function RealtimeCanvasDialog({ max={50} step={1} onValueChange={([val]) => setBrushSize(val)} - className="min-w-[140px] flex-1 [&>span:first-child]:h-2.5 [&>span:first-child]:bg-zinc-200 [&>span:first-child]:shadow-inner [&>span:first-child>span]:bg-sky-500 [&>span:last-child]:h-5 [&>span:last-child]:w-5 [&>span:last-child]:border-2 [&>span:last-child]:border-sky-500 [&>span:last-child]:bg-white" + className="min-w-[140px] flex-1" + trackClassName="h-2.5 bg-zinc-200 shadow-inner" + rangeClassName="bg-sky-500" + thumbClassName="h-5 w-5 border border-zinc-300 bg-white shadow-sm" />
@@ -2795,7 +2798,10 @@ export function RealtimeCanvasDialog({ scheduleFlush(true); } }} - className="flex-1 [&>span:first-child]:h-2.5 [&>span:first-child]:bg-zinc-200 [&>span:first-child]:shadow-inner [&>span:first-child>span]:bg-sky-500 [&>span:last-child]:h-5 [&>span:last-child]:w-5 [&>span:last-child]:border-2 [&>span:last-child]:border-sky-500 [&>span:last-child]:bg-white" + className="flex-1" + trackClassName="h-2.5 bg-zinc-200 shadow-inner" + rangeClassName="bg-sky-500" + thumbClassName="h-5 w-5 border border-zinc-300 bg-white shadow-sm" />