From f867f06fbb9a67c01d997133427d6d03428b0601 Mon Sep 17 00:00:00 2001 From: gunshiz Date: Thu, 8 Oct 2026 15:17:47 +0700 Subject: [PATCH] fix(comments) : preserve layout when expanding admin replies --- components/comments/comment-card.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/components/comments/comment-card.tsx b/components/comments/comment-card.tsx index ccbb0be..339cf17 100644 --- a/components/comments/comment-card.tsx +++ b/components/comments/comment-card.tsx @@ -219,9 +219,9 @@ export function CommentCard({ item, viewer, onChange, revision = 0, inbox = fals ; const Container = inbox ? TableRow : "article"; const Content = inbox ? TableCell : "div"; - return + return - +
{item.authorName.slice(0, 2)}
@@ -255,7 +255,7 @@ export function CommentCard({ item, viewer, onChange, revision = 0, inbox = fals {`การตอบกลับ ${item.replyCount.toLocaleString("th-TH")} รายการ`} {hasOpenedReplies &&
-
+
} @@ -322,12 +322,13 @@ function CommentReplyTree({ items, viewer, onChange, focusReplyId, moderationDet return siblings.map((reply, index) =>
-
+
- {groups.has(reply.id) &&
+ {groups.has(reply.id) &&
{branch(reply.id)}
}
);