From ce95f73ed73e5c2051e6d5aeaa373b67353a06b2 Mon Sep 17 00:00:00 2001 From: Jiayuan Zhang Date: Sat, 21 Mar 2026 14:38:04 +0800 Subject: [PATCH] refactor(web): redesign Activity section and comment input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Comments: avatar + name on same line, body indented below (pl-38px) - Status changes: small dot (5px) aligned with avatar column, compact - Comment input: minimal style matching Linear — small dot + plain text, no border/box, just a subtle separator line above - Consistent 28px avatar column for vertical alignment Co-Authored-By: Claude Opus 4.6 --- apps/web/app/(dashboard)/issues/[id]/page.tsx | 59 +++++++++---------- 1 file changed, 29 insertions(+), 30 deletions(-) diff --git a/apps/web/app/(dashboard)/issues/[id]/page.tsx b/apps/web/app/(dashboard)/issues/[id]/page.tsx index 681fdecd..9be02a75 100644 --- a/apps/web/app/(dashboard)/issues/[id]/page.tsx +++ b/apps/web/app/(dashboard)/issues/[id]/page.tsx @@ -179,37 +179,37 @@ export default function IssueDetailPage({ {/* Activity */}
-

Activity

+

Activity

-
- {timeline.map((entry) => +
+ {timeline.map((entry, idx) => entry.kind === "comment" ? ( /* ---- Comment ---- */ -
- -
-
- - {entry.actor.name} - - - {timeAgo(entry.createdAt)} - -
-

- {entry.content} -

+
+
+ + + {entry.actor.name} + + + {timeAgo(entry.createdAt)} + +
+
+ {entry.content}
) : ( - /* ---- Activity entry ---- */ + /* ---- Status change ---- */
- + + + - + {entry.actor.name} {" "} {entry.content} @@ -221,15 +221,14 @@ export default function IssueDetailPage({
{/* Comment input */} -
-
- -
-
- Leave a comment... +
+
+ + + + + Leave a comment... +