From 564dfd1b7df96401cc2271f9a4f115be907f30fb Mon Sep 17 00:00:00 2001 From: Yash Singh Date: Tue, 10 Nov 2026 00:06:15 -0600 Subject: [PATCH] fix(web): center short PR titles in thread details --- apps/web/src/components/chat/ThreadDetailsControl.tsx | 2 +- apps/web/src/components/chat/ThreadDetailsPrRow.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/chat/ThreadDetailsControl.tsx b/apps/web/src/components/chat/ThreadDetailsControl.tsx index e72e1cd7c46d..3c5161b9b344 100644 --- a/apps/web/src/components/chat/ThreadDetailsControl.tsx +++ b/apps/web/src/components/chat/ThreadDetailsControl.tsx @@ -52,7 +52,7 @@ export function ThreadDetailsControl({ className: cn( "relative inline-flex shrink-0 cursor-pointer items-center whitespace-nowrap border outline-none transition-[box-shadow,scale] [&:not([aria-haspopup]):not(:disabled):not([aria-disabled=true])]:will-change-[scale] [&:active:not([aria-haspopup])]:scale-[0.97] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 disabled:pointer-events-none disabled:opacity-64 aria-disabled:cursor-not-allowed aria-disabled:opacity-64 [&_svg]:shrink-0", parts[part], - multiline && "h-auto min-h-8 py-0.75 disabled:opacity-100 sm:h-auto", + multiline && "h-auto min-h-8 py-1.5 disabled:opacity-100 sm:h-auto", tone === "muted" && "text-muted-foreground hover:text-foreground/80", tone === "primary" && // The row surface forces a faint hover fill with !important; the solid pill keeps its own. diff --git a/apps/web/src/components/chat/ThreadDetailsPrRow.tsx b/apps/web/src/components/chat/ThreadDetailsPrRow.tsx index 23d705a8dae7..3f867992d75c 100644 --- a/apps/web/src/components/chat/ThreadDetailsPrRow.tsx +++ b/apps/web/src/components/chat/ThreadDetailsPrRow.tsx @@ -409,7 +409,7 @@ export function ThreadDetailsPrRow({ size="sm" part={part} multiline={wrap} - className={wrap ? "items-start [&>svg]:mt-0.5" : undefined} + className={wrap ? "items-start [&>svg]:mt-px" : undefined} aria-label={openAriaLabel} onClick={onOpen} onAuxClick={onOpen}