From ebfb947ba2726b4c4fd180a2a23d27db27d78e12 Mon Sep 17 00:00:00 2001 From: claude_code Date: Sun, 21 Jun 2026 23:09:11 +0300 Subject: [PATCH] style(comments): tighten aside panel spacing and widen it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Widen the comments/aside panel from 350 to 420 (~20% wider) - Remove double padding around the panel: AppShell.Aside p="md"->"sm" and inner Box p="md"->p={0}; reduce header-to-tabs gap mb="md"->"sm" - Reduce empty space below the add-comment input (paddingBottom 25->10), align the avatar with the input box (marginTop 10->2) and re-anchor the send button (bottom 30->15) - Pull the timestamp closer to the nickname via tighter line-height (lh 1.2 on the name, 1.1 on the "… ago" text) --- apps/client/src/components/layouts/global/aside.tsx | 4 ++-- .../src/components/layouts/global/global-app-shell.tsx | 4 ++-- .../src/features/comment/components/comment-list-item.tsx | 4 ++-- .../features/comment/components/comment-list-with-tabs.tsx | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/client/src/components/layouts/global/aside.tsx b/apps/client/src/components/layouts/global/aside.tsx index 6faf853a..a2b50a7f 100644 --- a/apps/client/src/components/layouts/global/aside.tsx +++ b/apps/client/src/components/layouts/global/aside.tsx @@ -44,10 +44,10 @@ export default function Aside() { } return ( - + {component && ( <> - + {t(title)} - + {comment.creator.name} @@ -155,7 +155,7 @@ function CommentListItem({ - + {createdAtAgo} 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 cb674442..ae02e72f 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 @@ -365,7 +365,7 @@ const PageCommentInput = ({ onSave, isLoading }) => { flex: "0 0 auto", borderTop: "1px solid var(--mantine-color-default-border)", paddingTop: "var(--mantine-spacing-sm)", - paddingBottom: 25, + paddingBottom: 10, position: "relative", }} > @@ -374,7 +374,7 @@ const PageCommentInput = ({ onSave, isLoading }) => { size="sm" avatarUrl={currentUser?.user?.avatarUrl} name={currentUser?.user?.name} - style={{ flexShrink: 0, marginTop: 10 }} + style={{ flexShrink: 0, marginTop: 2 }} />
{ onClick={handleSave} onMouseDown={(e) => e.preventDefault()} loading={isLoading} - style={{ position: "absolute", right: 8, bottom: 30 }} + style={{ position: "absolute", right: 8, bottom: 15 }} >