Skip to content

Commit f2dd98d

Browse files
committed
fix(web): show pointer cursors on pull request controls
1 parent 0a37240 commit f2dd98d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/web/src/components/pullRequest/PullRequestRow.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function PullRequestRowImpl({
103103
aria-current={selected ? "true" : undefined}
104104
onClick={() => onSelect(entry)}
105105
className={cn(
106-
"@container/pr-row grid w-full grid-cols-[auto_minmax(0,1fr)] items-center gap-3 rounded-lg px-3 py-3 text-left transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
106+
"@container/pr-row grid w-full cursor-pointer grid-cols-[auto_minmax(0,1fr)] items-center gap-3 rounded-lg px-3 py-3 text-left transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
107107
// Offscreen rows are skipped for style, layout and paint: a long list costs what the
108108
// viewport shows, not what the pages have loaded. The intrinsic size keeps the
109109
// scrollbar honest while a row is skipped.

‎apps/web/src/components/pullRequest/PullRequestSummaryTab.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ export function PullRequestSummaryTab({
804804
onClick={() => check.url && openCheck(check.url)}
805805
className={cn(
806806
"flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1.5 text-left text-xs",
807-
check.url ? undefined : "cursor-default",
807+
check.url ? "cursor-pointer" : "cursor-default",
808808
)}
809809
>
810810
<PullRequestCheckStatusIcon status={check.status} />

‎apps/web/src/components/pullRequest/PullRequestTimelineTab.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ function CommitEvent({
385385
return (
386386
<button
387387
type="button"
388-
className="group relative mb-5 block w-full rounded-sm pl-12 text-left outline-none [contain-intrinsic-block-size:48px] [content-visibility:auto] focus-visible:ring-2 focus-visible:ring-ring"
388+
className="group relative mb-5 block w-full cursor-pointer rounded-sm pl-12 text-left outline-none [contain-intrinsic-block-size:48px] [content-visibility:auto] focus-visible:ring-2 focus-visible:ring-ring"
389389
aria-label={`View commit ${event.id}`}
390390
onClick={() => onOpen(event.id)}
391391
>

0 commit comments

Comments
 (0)