Skip to content

Commit c8c9ccf

Browse files
authored
fix(web): center pull request timeline actions (pingdotgg#24259)
1 parent eeda2cb commit c8c9ccf

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function OpenOnHostButton({ url, onOpen }: { url: string | null; onOpen: (url: s
166166
<Button
167167
size="icon-xs"
168168
variant="ghost-muted"
169-
className="-mr-1 -mt-1 shrink-0"
169+
className="-mr-1 shrink-0"
170170
aria-label="Open activity on host"
171171
onClick={() => onOpen(url)}
172172
>
@@ -217,7 +217,7 @@ function ConversationCard({
217217
return (
218218
<article className="group py-2">
219219
<div className="px-2">
220-
<div className="flex min-w-0 flex-wrap items-start gap-2">
220+
<div className="flex min-w-0 flex-wrap items-center gap-2">
221221
<div className="min-w-0 flex-1">
222222
<div className="flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1 text-xs">
223223
<ActorName actor={event.actor} />
@@ -237,11 +237,7 @@ function ConversationCard({
237237
</PullRequestMetaLine>
238238
</div>
239239
{editable !== null && !editing ? (
240-
<PullRequestEditButton
241-
className="-mt-1"
242-
aria-label="Edit comment"
243-
onClick={() => setEditing(true)}
244-
/>
240+
<PullRequestEditButton aria-label="Edit comment" onClick={() => setEditing(true)} />
245241
) : null}
246242
{reactions.canReact || event.reactions.length > 0 ? (
247243
<PullRequestReactionBar
@@ -564,7 +560,7 @@ function ReviewVerdictEvent({
564560
className="top-6"
565561
fallback={<PullRequestReviewOutcomeIcon outcome={outcome} />}
566562
/>
567-
<div className="flex min-w-0 flex-wrap items-start gap-2 py-1.5">
563+
<div className="flex min-w-0 flex-wrap items-center gap-2 py-1.5">
568564
<div className="min-w-0 flex-1">
569565
<div className="flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1 text-xs">
570566
<ActorName actor={event.actor} />

0 commit comments

Comments
 (0)