From e2f492ccae9afcc98ae7eb76bb94dc973aed60d8 Mon Sep 17 00:00:00 2001 From: yyamashita Date: Sat, 9 May 2026 14:11:33 +0900 Subject: simplize css --- app/routes/artist-new.tsx | 66 ++++++++++++++++------------------------------- 1 file changed, 22 insertions(+), 44 deletions(-) (limited to 'app/routes/artist-new.tsx') diff --git a/app/routes/artist-new.tsx b/app/routes/artist-new.tsx index 168a7cc..ce91dab 100644 --- a/app/routes/artist-new.tsx +++ b/app/routes/artist-new.tsx @@ -44,19 +44,17 @@ export default function ArtistNew() { const [links, setLinks] = useState<{ label: string; url: string }[]>([]); return ( -
-
- ← -

New Artist

+
+
+ ← +

New Artist

-
+
- + - {errors.name &&

{errors.name}

} + {errors.name &&

{errors.name}

}
- + { setSlugManual(true); setSlug(e.target.value); }} - className="w-full bg-gray-800 border border-gray-700 rounded px-3 py-2 text-gray-100 focus:outline-none focus:border-blue-500 font-mono text-sm" + className="mono" /> - {errors.slug &&

{errors.slug}

} + {errors.slug &&

{errors.slug}

}
- -
+ +
{links.map((link, i) => ( -
+
setLinks(links.map((l, idx) => idx === i ? { ...l, label: e.target.value } : l))} placeholder="ラベル (例: X)" - className="w-28 bg-gray-800 border border-gray-700 rounded px-3 py-2 text-gray-100 focus:outline-none focus:border-blue-500 text-sm" /> setLinks(links.map((l, idx) => idx === i ? { ...l, url: e.target.value } : l))} placeholder="https://..." - className="flex-1 bg-gray-800 border border-gray-700 rounded px-3 py-2 text-gray-100 focus:outline-none focus:border-blue-500 text-sm" /> @@ -111,38 +105,22 @@ export default function ArtistNew() {
- - - {errors.message &&

{errors.message}

} + + + {errors.message &&

{errors.message}

}
-
- - - キャンセル - +
+ + キャンセル
-- cgit v1.2.3