fix(web): center pull request unavailable states (#11110)

This commit is contained in:
maria authored and GitHub committed 2026-09-10 23:59:10 -03:00
1 parent 20ef25037f
commit 4d06156dd7
3 files changed
+10 -4

No files matched your search

@@ -1447,7 +1447,13 @@ export function PullRequestDetailPanel({
onPickerOpenChange={setThreadPickerOpen}
/>
) : null}
<div className="@container/pr-header grid min-w-0 shrink-0 grid-cols-[minmax(0,1fr)_auto] items-start gap-x-2 border-b border-border/60">
<div
className={cn(
"@container/pr-header grid min-w-0 shrink-0 grid-cols-[minmax(0,1fr)_auto] items-start gap-x-2",
detail && "border-b border-border/60",
!detail && !onClose && "hidden",
)}
>
<div className="ml-4 grid h-7 min-w-0 items-center overflow-hidden">
<div
aria-hidden={condensed}
@@ -2513,7 +2519,7 @@ export function PullRequestDetailPanel({
</div>
<div
className="relative min-h-0 flex-1 overflow-hidden"
className="relative flex min-h-0 flex-1 flex-col overflow-hidden"
onScrollCapture={(event) => {
const scroller = event.target as HTMLElement;
scrollerRef.current = scroller;
@@ -25,7 +25,7 @@ export function PullRequestsUnavailableState({
gitHubUrl?: string;
}) {
return (
<Empty className="px-4 py-16 md:px-4">
<Empty className="min-h-0 justify-center-safe overflow-y-auto px-4 py-16 md:px-4 [&>*]:shrink-0">
<EmptyMedia variant="icon">
<GitPullRequestIcon />
</EmptyMedia>
+1 -1
View File
@@ -2362,7 +2362,7 @@ function PullRequestsColumn({
{/* The top padding is the shared fade band's height, the same pairing the
settings page makes: at rest the controls sit fully below the mask, and only
content actually passing under the chrome fades. */}
<WorkspacePageContainer width="expanded" className="gap-4">
<WorkspacePageContainer width="expanded" className="min-h-full gap-4">
<div className="flex flex-col gap-3">
<div ref={inFlowSearchRef} className="flex flex-wrap items-center gap-2">
<div className="min-w-0 basis-full @lg/pr-list:basis-0 @lg/pr-list:flex-1">