style(comments): tighten aside panel spacing and widen it

- 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)
This commit is contained in:
claude_code
2026-06-21 23:09:11 +03:00
parent 43f8c9ab99
commit ebfb947ba2
4 changed files with 9 additions and 9 deletions

View File

@@ -44,10 +44,10 @@ export default function Aside() {
} }
return ( return (
<Box p="md" style={{ height: "100%", display: "flex", flexDirection: "column" }}> <Box p={0} style={{ height: "100%", display: "flex", flexDirection: "column" }}>
{component && ( {component && (
<> <>
<Group justify="space-between" wrap="nowrap" mb="md"> <Group justify="space-between" wrap="nowrap" mb="sm">
<Title order={2} size="h6" fw={500}>{t(title)}</Title> <Title order={2} size="h6" fw={500}>{t(title)}</Title>
<Tooltip label={t("Close")} withArrow> <Tooltip label={t("Close")} withArrow>
<ActionIcon <ActionIcon

View File

@@ -94,7 +94,7 @@ export default function GlobalAppShell({
}} }}
aside={ aside={
isPageRoute && { isPageRoute && {
width: 350, width: 420,
breakpoint: "sm", breakpoint: "sm",
collapsed: { mobile: !isAsideOpen, desktop: !isAsideOpen }, collapsed: { mobile: !isAsideOpen, desktop: !isAsideOpen },
} }
@@ -138,7 +138,7 @@ export default function GlobalAppShell({
id={ASIDE_PANEL_ID} id={ASIDE_PANEL_ID}
tabIndex={-1} tabIndex={-1}
className={classes.aside} className={classes.aside}
p="md" p="sm"
withBorder={false} withBorder={false}
aria-label={ aria-label={
asideTab === "comments" asideTab === "comments"

View File

@@ -126,7 +126,7 @@ function CommentListItem({
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<Group justify="space-between" wrap="nowrap"> <Group justify="space-between" wrap="nowrap">
<Text size="xs" fw={500} lineClamp={1}> <Text size="xs" fw={500} lineClamp={1} lh={1.2}>
{comment.creator.name} {comment.creator.name}
</Text> </Text>
@@ -155,7 +155,7 @@ function CommentListItem({
</Group> </Group>
<Group gap="xs"> <Group gap="xs">
<Text size="xs" fw={500} c="dimmed"> <Text size="xs" fw={500} c="dimmed" lh={1.1}>
{createdAtAgo} {createdAtAgo}
</Text> </Text>
</Group> </Group>

View File

@@ -365,7 +365,7 @@ const PageCommentInput = ({ onSave, isLoading }) => {
flex: "0 0 auto", flex: "0 0 auto",
borderTop: "1px solid var(--mantine-color-default-border)", borderTop: "1px solid var(--mantine-color-default-border)",
paddingTop: "var(--mantine-spacing-sm)", paddingTop: "var(--mantine-spacing-sm)",
paddingBottom: 25, paddingBottom: 10,
position: "relative", position: "relative",
}} }}
> >
@@ -374,7 +374,7 @@ const PageCommentInput = ({ onSave, isLoading }) => {
size="sm" size="sm"
avatarUrl={currentUser?.user?.avatarUrl} avatarUrl={currentUser?.user?.avatarUrl}
name={currentUser?.user?.name} name={currentUser?.user?.name}
style={{ flexShrink: 0, marginTop: 10 }} style={{ flexShrink: 0, marginTop: 2 }}
/> />
<div style={{ flex: 1, minWidth: 0 }}> <div style={{ flex: 1, minWidth: 0 }}>
<CommentEditor <CommentEditor
@@ -396,7 +396,7 @@ const PageCommentInput = ({ onSave, isLoading }) => {
onClick={handleSave} onClick={handleSave}
onMouseDown={(e) => e.preventDefault()} onMouseDown={(e) => e.preventDefault()}
loading={isLoading} loading={isLoading}
style={{ position: "absolute", right: 8, bottom: 30 }} style={{ position: "absolute", right: 8, bottom: 15 }}
> >
<IconArrowUp size={16} /> <IconArrowUp size={16} />
</ActionIcon> </ActionIcon>