Skip to content

Commit 568166c

Browse files
add pr commits design review
1 parent 2259215 commit 568166c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function Icon({
3333
<div
3434
className={cn(
3535
{
36-
'text-cn-foreground-1 shadow-commit-list-bullet': simpleNodeIcon,
36+
'text-cn-foreground-1': simpleNodeIcon,
3737
'border-cn-borders-3 bg-cn-background-2 text-cn-foreground-1 relative flex h-6 w-6 place-content-center place-items-center rounded-full border p-1 layer-medium':
3838
!simpleNodeIcon
3939
},
@@ -61,7 +61,7 @@ function Content({ children, className }: { children: ReactNode; className?: str
6161
function Connector({ className }: { className?: string }) {
6262
return (
6363
<div
64-
className={cn('absolute bottom-0 left-[4px] top-5 z-10 w-1 border-l border-cn-borders-4', className)}
64+
className={cn('absolute bottom-0 left-[4px] top-5 z-10 w-1 border-l border-cn-borders-3', className)}
6565
data-connector
6666
/>
6767
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ 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 grid-cols-[9px_1fr] gap-4 last:pb-0" key={date}>
48+
<NodeGroup.Root className="pb-cn-xl gap-cn-md grid-cols-[9px_1fr] last:pb-0" key={date}>
4949
<NodeGroup.Icon simpleNodeIcon />
5050
<NodeGroup.Title>{date && <Text variant="body-single-line-normal">Commits on {date}</Text>}</NodeGroup.Title>
5151
<NodeGroup.Content>

packages/ui/src/views/repo/pull-request/compare/pull-request-compare-page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export const PullRequestComparePage: FC<PullRequestComparePageProps> = ({
285285
<Layout.Horizontal
286286
align="center"
287287
justify="between"
288-
className="mt-5 rounded-md border border-cn-borders-2 bg-cn-background-2 px-4 py-3"
288+
className="border-cn-borders-2 bg-cn-background-2 mt-5 rounded-md border px-4 py-3"
289289
>
290290
<Text variant="body-normal" color="foreground-1">
291291
{isBranchSelected ? (
@@ -324,7 +324,7 @@ export const PullRequestComparePage: FC<PullRequestComparePageProps> = ({
324324
<Layout.Horizontal
325325
align="center"
326326
justify="between"
327-
className="mt-4 rounded-md border border-cn-borders-2 bg-cn-background-2 p-4"
327+
className="border-cn-borders-2 bg-cn-background-2 mt-4 rounded-md border p-4"
328328
>
329329
<div className="flex items-center gap-x-1.5">
330330
<div>
@@ -364,7 +364,7 @@ export const PullRequestComparePage: FC<PullRequestComparePageProps> = ({
364364
</Tabs.Trigger>
365365
</Tabs.List>
366366
{!prBranchCombinationExists && (
367-
<Tabs.Content className="pt-7" value="overview">
367+
<Tabs.Content className="pt-cn-lg" value="overview">
368368
<Layout.Flex gap="xl">
369369
<Layout.Horizontal className="flex-1" gap="sm">
370370
{currentUser && <Avatar name={currentUser?.display_name} rounded />}
@@ -412,7 +412,7 @@ export const PullRequestComparePage: FC<PullRequestComparePageProps> = ({
412412
</Layout.Flex>
413413
</Tabs.Content>
414414
)}
415-
<Tabs.Content className="pt-7" value="commits">
415+
<Tabs.Content className="pt-cn-lg" value="commits">
416416
{/* TODO: add pagination to this */}
417417
{isFetchingCommits ? (
418418
<Skeleton.List />

0 commit comments

Comments
 (0)