Skip to content

Commit f115f0e

Browse files
fixes
1 parent 951a657 commit f115f0e

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

packages/ui/src/components/node-group.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ interface NodeGroupRootProps {
1212
function Root({ className, children }: NodeGroupRootProps) {
1313
return (
1414
<div
15-
className={cn('relative grid grid-cols-[26px_1fr] grid-rows-[auto_1fr] items-center gap-x-3 gap-y-2', className)}
15+
className={cn(
16+
'relative grid grid-cols-[26px_1fr] grid-rows-[auto_1fr] items-center gap-x-cn-sm gap-y-cn-xs',
17+
className
18+
)}
1619
>
1720
{children}
1821
</div>
@@ -49,7 +52,7 @@ function Icon({
4952
function Title({ children, className }: { children: ReactNode; className?: string }) {
5053
return (
5154
<div className="col-start-2 row-start-1">
52-
<div className={cn('inline-flex items-center gap-1.5', className)}>{children}</div>
55+
<div className={cn('inline-flex items-center gap-cn-2xs', className)}>{children}</div>
5356
</div>
5457
)
5558
}

packages/ui/src/views/repo/components/commits-list.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,15 @@ export const CommitsList: FC<CommitProps> = ({ data, toCommitDetails, toPullRequ
4545
return (
4646
<div className={className}>
4747
{entries.map(([date, commitData]) => (
48-
<NodeGroup.Root className="pb-cn-xl gap-cn-md grid-cols-[9px_1fr] last:pb-0" key={date}>
48+
<NodeGroup.Root className="pb-cn-xl !gap-y-cn-md !gap-x-cn-md grid-cols-[14px_1fr] last:pb-0" key={date}>
4949
<NodeGroup.Icon simpleNodeIcon />
50-
<NodeGroup.Title>{date && <Text variant="body-single-line-normal">Commits on {date}</Text>}</NodeGroup.Title>
50+
<NodeGroup.Title>
51+
{date && (
52+
<Text variant="body-single-line-normal" color="foreground-3">
53+
Commits on {date}
54+
</Text>
55+
)}
56+
</NodeGroup.Title>
5157
<NodeGroup.Content>
5258
{!!commitData.length && (
5359
<StackedList.Root>
@@ -111,7 +117,7 @@ export const CommitsList: FC<CommitProps> = ({ data, toCommitDetails, toPullRequ
111117
</StackedList.Root>
112118
)}
113119
</NodeGroup.Content>
114-
<NodeGroup.Connector />
120+
<NodeGroup.Connector className="left-1.5" />
115121
</NodeGroup.Root>
116122
))}
117123
</div>

0 commit comments

Comments
 (0)