@devries-cameron20 / t3code-1 / commits / cb4fe60a4b
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): show the thread details tooltip (#24864)

Utkarsh Patil committed Oct 28, 2026 at 14:21 UTC cb4fe60a4b5a6598c0f73680bf242f5b85bb5279
1 file changed +11 -13
apps/web/src/components/chat/PanelLayoutControls.tsx
+11 -13
@@ -1,7 +1,7 @@
1 import { PanelBottomIcon, PanelRightIcon, SquareMenuIcon } from "lucide-react";
2 import { Maximize2, Minimize2 } from "lucide";
3 import { MorphIcon } from "~/components/MorphIcon";
4 -import { memo, type ReactElement, type ReactNode } from "react";
4 +import { memo, type ReactNode } from "react";
5
6 import { cn } from "~/lib/utils";
7
@@ -53,6 +53,7 @@ export const PanelLayoutControls = memo(function PanelLayoutControls({
53 <Toggle
54 className="relative shrink-0 [-webkit-app-region:no-drag]"
55 pressed={threadPanelOpen}
56 + onPressedChange={threadPanelPresentation === "popover" ? undefined : onToggleThreadPanel}
57 aria-label="Toggle thread details panel"
58 variant="ghost"
59 size="sm"
@@ -60,12 +61,15 @@ export const PanelLayoutControls = memo(function PanelLayoutControls({
61 <SquareMenuIcon className="size-4" />
62 </Toggle>
63 );
63 - const threadPanelTooltip = (trigger: ReactElement) => (
64 + const threadPanelControl = (
65 <Tooltip>
65 - <TooltipTrigger
66 - render={trigger}
67 - {...(threadPanelPresentation === "popover" ? {} : { onClick: onToggleThreadPanel })}
68 - />
66 + <TooltipTrigger render={<span className="flex shrink-0" />}>
67 + {threadPanelPresentation === "popover" ? (
68 + <PopoverTrigger handle={threadPanelPopoverHandle} render={threadPanelToggle} />
69 + ) : (
70 + threadPanelToggle
71 + )}
72 + </TooltipTrigger>
73 <TooltipPopup side="bottom">
74 Toggle thread details
75 {threadPanelShortcutLabel ? ` (${threadPanelShortcutLabel})` : ""}
@@ -78,13 +82,7 @@ export const PanelLayoutControls = memo(function PanelLayoutControls({
82 className="flex h-full shrink-0 items-center gap-1 [-webkit-app-region:no-drag]"
83 data-panel-layout-controls
84 >
81 - {showThreadPanelControl
82 - ? threadPanelPresentation === "popover"
83 - ? threadPanelTooltip(
84 - <PopoverTrigger handle={threadPanelPopoverHandle} render={threadPanelToggle} />,
85 - )
86 - : threadPanelTooltip(threadPanelToggle)
87 - : null}
85 + {showThreadPanelControl ? threadPanelControl : null}
86 {showTerminalControl ? (
87 <Tooltip>
88 <TooltipTrigger render={<span className="flex shrink-0" />}>