From 680995247a88b72f418b5c2efd82142914543321 Mon Sep 17 00:00:00 2001 From: "glm5.2 agent 180" Date: Sat, 20 Jun 2026 14:02:40 +0300 Subject: [PATCH] feat(comment): tighten the comments panel density The Comments panel was sparse: 12px inner/outer paddings per thread, a 16px gap between avatar and body, body text at the global 16px ProseMirror size. On a narrow aside column this ate vertical space - few comments per screen, lots of air. Tighten strictly inside features/comment (the shared aside frame is left untouched, so TOC/Details tabs keep their padding): - Thread Paper: p='sm'->p='xs', mb='sm'->mb='xs' (12->10px). - Reply-editor Divider: my={4}->my={2}. - CommentListItem outer Box: pb='xs'->pb={6}; the header Group (avatar + body) gains gap='xs' (16->10px). - Font hierarchy: author name sm->xs (14->12px, fw=500 kept), selection quote sm->xs; comment body via a scoped CSS override on .commentEditor .ProseMirror: font-size sm (14px) + line-height 1.4, margin-top 10->4. The page editor is unaffected (the override is scoped to the comment editor module). - Selection quote padding 8->6, margin-top 4->2. - Dropped the unused .wrapper rule (no references). --- .../comment/components/comment-list-item.tsx | 8 ++++---- .../comment/components/comment-list-with-tabs.tsx | 6 +++--- .../comment/components/comment.module.css | 15 ++++++++------- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/apps/client/src/features/comment/components/comment-list-item.tsx b/apps/client/src/features/comment/components/comment-list-item.tsx index a53e326a..8429e754 100644 --- a/apps/client/src/features/comment/components/comment-list-item.tsx +++ b/apps/client/src/features/comment/components/comment-list-item.tsx @@ -116,8 +116,8 @@ function CommentListItem({ } return ( - - + + - + {comment.creator.name} @@ -177,7 +177,7 @@ function CommentListItem({ tabIndex={0} aria-label={t("Jump to comment selection")} > - {comment?.selection} + {comment?.selection} )} diff --git a/apps/client/src/features/comment/components/comment-list-with-tabs.tsx b/apps/client/src/features/comment/components/comment-list-with-tabs.tsx index a3f348b8..cb674442 100644 --- a/apps/client/src/features/comment/components/comment-list-with-tabs.tsx +++ b/apps/client/src/features/comment/components/comment-list-with-tabs.tsx @@ -121,8 +121,8 @@ function CommentListWithTabs() { - +