diff --git a/apps/web/src/components/PaneNotch.tsx b/apps/web/src/components/PaneNotch.tsx index 66430ece9be6d..c4de09368963e 100644 --- a/apps/web/src/components/PaneNotch.tsx +++ b/apps/web/src/components/PaneNotch.tsx @@ -15,8 +15,9 @@ import { holdEndCornerWhileSliding } from "../motion/paneMotion"; * tooltips keep working in Electron. The focus ring is inset because the tab * sits on the pane edge, where the pane clip would cut an outer ring. */ -export const PANE_TAB_CLASS = - "inline-flex h-7 min-w-0 max-w-80 items-center gap-1.75 rounded-control surface-pane-tab px-2.5 text-control text-strong-foreground outline-none [-webkit-app-region:no-drag] focus-visible:inset-ring-2 focus-visible:inset-ring-ring"; +export const PANE_TAB_SHAPE_CLASS = + "inline-flex h-7 min-w-0 max-w-80 items-center gap-1.75 rounded-control px-2.5 text-control text-strong-foreground outline-none [-webkit-app-region:no-drag] focus-visible:inset-ring-2 focus-visible:inset-ring-ring"; +export const PANE_TAB_CLASS = `${PANE_TAB_SHAPE_CLASS} surface-pane-tab`; export const PANE_TAB_TITLE_CLASS = "max-w-68 truncate"; /** The connected pane tabs widen it to the active title's, so activating a tab moves nothing. */ diff --git a/apps/web/src/components/ThreadStatusIndicators.tsx b/apps/web/src/components/ThreadStatusIndicators.tsx index 8ea503be51dca..6e58a12697af9 100644 --- a/apps/web/src/components/ThreadStatusIndicators.tsx +++ b/apps/web/src/components/ThreadStatusIndicators.tsx @@ -29,7 +29,13 @@ import { visibleThreadPullRequests, } from "@t3tools/client-runtime/thread-pull-requests"; import { useRender } from "@base-ui/react/use-render"; -import { type ReactNode, type AnimationEvent, type MouseEvent, type ReactElement } from "react"; +import { + type ReactNode, + type AnimationEvent, + type MouseEvent, + type PointerEvent, + type ReactElement, +} from "react"; import { cn } from "../lib/utils"; import { revealThreadTerminal } from "../lib/revealThreadTerminal"; @@ -254,6 +260,7 @@ export function ThreadPullRequestBadgeControl({ status, onOpenList, onOpenPullRequest, + onPress, appearance = "glyph", }: { render: ReactElement<{ render?: useRender.RenderProp }>; @@ -264,6 +271,7 @@ export function ThreadPullRequestBadgeControl({ status: PrStatusIndicator | null; onOpenList: () => void; onOpenPullRequest: (event: MouseEvent, url?: string) => void; + onPress: (event: PointerEvent, opensList: boolean) => void; appearance?: ThreadPullRequestBadgeAppearance; }) { const presentation = resolveThreadPullRequestBadgePresentation({ badge, number, url, status }); @@ -280,6 +288,7 @@ export function ThreadPullRequestBadgeControl({ pullRequests={pullRequests} onOpenList={onOpenList} onOpenPullRequest={onOpenPullRequest} + onPress={onPress} /> ); } @@ -295,6 +304,7 @@ function PullRequestBadge({ pullRequests, onOpenList, onOpenPullRequest, + onPress, }: { render: ReactElement<{ render?: useRender.RenderProp }>; appearance: ThreadPullRequestBadgeAppearance; @@ -306,6 +316,7 @@ function PullRequestBadge({ pullRequests: ReadonlyArray; onOpenList: () => void; onOpenPullRequest: (event: MouseEvent, url?: string) => void; + onPress: (event: PointerEvent, opensList: boolean) => void; }) { const onClick = opensList ? (event: MouseEvent) => { @@ -317,14 +328,17 @@ function PullRequestBadge({ const element = opensList ? (