diff --git a/apps/web/src/components/chat/PanelLayoutControls.tsx b/apps/web/src/components/chat/PanelLayoutControls.tsx
index 11d22b1354e10..6750298402942 100644
--- a/apps/web/src/components/chat/PanelLayoutControls.tsx
+++ b/apps/web/src/components/chat/PanelLayoutControls.tsx
@@ -1,7 +1,7 @@
import { PanelBottomIcon, PanelRightIcon, SquareMenuIcon } from "lucide-react";
import { Maximize2, Minimize2 } from "lucide";
import { MorphIcon } from "~/components/MorphIcon";
-import { memo, type ReactElement, type ReactNode } from "react";
+import { memo, type ReactNode } from "react";
import { cn } from "~/lib/utils";
@@ -53,6 +53,7 @@ export const PanelLayoutControls = memo(function PanelLayoutControls({
);
- const threadPanelTooltip = (trigger: ReactElement) => (
+ const threadPanelControl = (
-
+ }>
+ {threadPanelPresentation === "popover" ? (
+
+ ) : (
+ threadPanelToggle
+ )}
+
Toggle thread details
{threadPanelShortcutLabel ? ` (${threadPanelShortcutLabel})` : ""}
@@ -78,13 +82,7 @@ export const PanelLayoutControls = memo(function PanelLayoutControls({
className="flex h-full shrink-0 items-center gap-1 [-webkit-app-region:no-drag]"
data-panel-layout-controls
>
- {showThreadPanelControl
- ? threadPanelPresentation === "popover"
- ? threadPanelTooltip(
- ,
- )
- : threadPanelTooltip(threadPanelToggle)
- : null}
+ {showThreadPanelControl ? threadPanelControl : null}
{showTerminalControl ? (
}>