From 9a1c292b77389a60636c90fef98f606fad70cc6e Mon Sep 17 00:00:00 2001 From: yuanzonghao Date: Sat, 6 Jun 2026 21:47:10 +0800 Subject: [PATCH] feat(web): polish custom style view layout and UX Rework custom style view: fixed modal height to match grid view, move upload and preset-import controls to bottom toolbar alongside cancel/save, textarea fills remaining space. Add bordered style to cancel button, improve disabled save button visibility, remove per-card magic-wand customize button, and add placeholder hint about English prompts. Co-Authored-By: Claude Opus 4.6 --- app/page.tsx | 150 ++++++++++++++++++++++++--------------------------- 1 file changed, 69 insertions(+), 81 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 31b6f67..410caaa 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1025,7 +1025,7 @@ function StyleModal({
e.stopPropagation()} className={ - "flex w-[1400px] max-w-[94vw] max-h-[86vh] flex-col overflow-hidden rounded-sm border border-clay-900/15 bg-cream-50 shadow-2xl shadow-clay-900/25 transition-all duration-300 " + + "flex w-[1400px] max-w-[94vw] h-[86vh] flex-col overflow-hidden rounded-sm border border-clay-900/15 bg-cream-50 shadow-2xl shadow-clay-900/25 transition-all duration-300 " + (shown ? "opacity-100 scale-100" : "opacity-0 scale-95") } > @@ -1073,53 +1073,56 @@ function StyleModal({
{view === "custom" ? ( -
-
- { - const f = e.target.files?.[0]; - if (f) handleUploadStyleImage(f); - if (fileInputRef.current) fileInputRef.current.value = ""; - }} - /> +
+ { + const f = e.target.files?.[0]; + if (f) handleUploadStyleImage(f); + if (fileInputRef.current) fileInputRef.current.value = ""; + }} + /> +