From e2f492ccae9afcc98ae7eb76bb94dc973aed60d8 Mon Sep 17 00:00:00 2001
From: yyamashita <yyamashita@mosquit.one>
Date: Sat, 9 May 2026 14:11:33 +0900
Subject: simplize css

---
 app/routes/artist-history.tsx | 35 +++++++++++++----------------------
 1 file changed, 13 insertions(+), 22 deletions(-)

(limited to 'app/routes/artist-history.tsx')

diff --git a/app/routes/artist-history.tsx b/app/routes/artist-history.tsx
index c2fb4cb..2808927 100644
--- a/app/routes/artist-history.tsx
+++ b/app/routes/artist-history.tsx
@@ -12,38 +12,29 @@ export async function loader({ params }: LoaderFunctionArgs) {
 export default function ArtistHistory() {
   const { artist, revisions } = useLoaderData<typeof loader>();
   return (
-    <main className="max-w-3xl mx-auto px-4 py-8">
-      <div className="flex items-center gap-3 mb-6">
-        <Link
-          to={`/artists/of/${artist.id}`}
-          className="text-gray-400 hover:text-gray-200 transition-colors"
-        >
-          ←
-        </Link>
-        <h1 className="text-xl font-semibold">{artist.name} — 編集履歴</h1>
+    <main>
+      <div className="page-header">
+        <Link to={`/artists/of/${artist.id}`} className="back">←</Link>
+        <h1>{artist.name} — 編集履歴</h1>
       </div>
 
       {revisions.length === 0 ? (
-        <p className="text-gray-400">履歴がありません。</p>
+        <p className="muted">履歴がありません。</p>
       ) : (
-        <ol className="space-y-4">
+        <ol className="rev-list">
           {revisions.map((rev, i) => {
             let snap: { name?: string; links?: unknown[] } = {};
             try { snap = JSON.parse(rev.snapshot); } catch { /* ignore */ }
             return (
-              <li key={rev.id} className="bg-gray-900 rounded-lg p-4">
-                <div className="flex items-start justify-between gap-4">
-                  <div className="flex-1 min-w-0">
-                    <p className="font-medium text-gray-100 truncate">{rev.message}</p>
-                    <p className="text-xs text-gray-500 mt-1">
-                      {rev.created_at} · {rev.ip_address}
-                    </p>
+              <li key={rev.id} className="rev">
+                <div className="rev-header">
+                  <div className="rev-main">
+                    <p className="rev-message">{rev.message}</p>
+                    <p className="rev-time">{rev.created_at} · {rev.ip_address}</p>
                   </div>
-                  {i === 0 && (
-                    <span className="text-xs text-blue-400 shrink-0">最新</span>
-                  )}
+                  {i === 0 && <span className="rev-latest">最新</span>}
                 </div>
-                <div className="mt-3 text-xs text-gray-400 space-y-0.5">
+                <div className="rev-snap">
                   <p>名前: {snap.name ?? "—"}</p>
                   <p>リンク: {snap.links?.length ?? 0}件</p>
                 </div>
-- 
cgit v1.2.3

