From 40190a603431cdc0712f900ea094723d9feec5f8 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 1 Jun 2026 01:14:07 +0800 Subject: [PATCH] refactor: align ai wash workspace styling --- components/canvas/AiWashWorkspace.tsx | 822 ++++++++++++++------------ 1 file changed, 432 insertions(+), 390 deletions(-) diff --git a/components/canvas/AiWashWorkspace.tsx b/components/canvas/AiWashWorkspace.tsx index 5d55fad38..17c1d8557 100644 --- a/components/canvas/AiWashWorkspace.tsx +++ b/components/canvas/AiWashWorkspace.tsx @@ -1,13 +1,14 @@ "use client"; import { - CheckCircle2, Clock3, History as HistoryIcon, ImageIcon, Loader2, RefreshCcw, Send, + Settings2, + SlidersHorizontal, Sparkles, Trash2, Upload, @@ -50,9 +51,23 @@ import { cn } from "@/lib/utils"; const fetcher = (url: string) => fetch(url).then((res) => res.json()); const PANEL_CLASS = - "rounded-[28px] border border-white/10 bg-white/[0.04] shadow-[0_20px_40px_rgba(0,0,0,0.22)] backdrop-blur-xl"; + "rounded-[28px] border border-[#e5e5e5] bg-white shadow-[0_0_0_1px_rgba(0,0,0,0.03),0_20px_40px_rgba(0,0,0,0.06)]"; const SUBTLE_PANEL_CLASS = - "rounded-[24px] border border-white/10 bg-white/[0.03] shadow-[inset_0_1px_0_rgba(255,255,255,0.05)]"; + "rounded-[22px] border border-[#ececec] bg-[#fbfbfb] shadow-[inset_0_1px_0_rgba(255,255,255,0.95)]"; +const PRIMARY_ACTION_BUTTON_CLASS = + "border border-[#111111] bg-[#111111] text-white shadow-[0_16px_30px_rgba(0,0,0,0.18)] transition hover:bg-black hover:border-black disabled:border-[#e5e5e5] disabled:bg-[#f1f1f1] disabled:text-[#9a9a9a] disabled:shadow-none"; +const SECONDARY_ACTION_BUTTON_CLASS = + "border border-[#d9d9d9] bg-white text-[#111111] shadow-[0_0_0_1px_rgba(0,0,0,0.02),0_10px_22px_rgba(0,0,0,0.03)] transition hover:border-[#111111] hover:bg-[#fafafa] hover:text-black disabled:border-[#e5e5e5] disabled:bg-[#f7f7f7] disabled:text-[#a5a5a5] disabled:shadow-none"; +const FIELD_CLASS = + "h-10 rounded-[14px] border-[#e5e5e5] bg-white text-[#111111] shadow-[inset_0_1px_0_rgba(255,255,255,0.95),0_1px_2px_rgba(0,0,0,0.04)]"; +const SELECT_CONTENT_CLASS = + "border-[#e5e5e5] bg-white text-[#111111] shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_18px_38px_rgba(0,0,0,0.08)]"; +const SIDEBAR_SCROLL_CLASS = + "pr-1.5 [scrollbar-width:thin] [scrollbar-color:#c8c8c8_transparent] [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-[#c8c8c8] hover:[&::-webkit-scrollbar-thumb]:bg-[#a8a8a8]"; +const SLIDER_TRACK_CLASS = "h-2.5 bg-[#ededed] shadow-inner"; +const SLIDER_RANGE_CLASS = "bg-[#111111]"; +const SLIDER_THUMB_CLASS = + "h-4 w-4 border border-[#d4d4d4] bg-white shadow-[0_0_0_4px_rgba(0,0,0,0.08)]"; const AI_WASH_HISTORY_STORAGE_KEY = "ai-chatbot:ai-wash-history:v1"; const AI_WASH_HISTORY_TOTAL_LIMIT = 24; const AI_WASH_TASK_POLL_INTERVAL_MS = 2500; @@ -891,432 +906,459 @@ export function AiWashWorkspace({ ); return ( -
-
+
+
+
-