Skip to content

Commit 0bb1b44

Browse files
committed
fix: prevent redundant sidebar and agent buttons in RightPanelHeader when sidebar is open
1 parent e6cea29 commit 0bb1b44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/layout/RightPanelHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function RightPanelHeader() {
6060
className={`flex items-center justify-between gap-1 py-1 h-11 border-b border-white/10 shrink-0 ${needsTrafficLightOffset && isRightPanelFocused && !isMobile ? 'pl-20' : ''}`}
6161
>
6262
<div className="flex items-center gap-0.5 min-w-0 overflow-x-auto">
63-
{isRightPanelFocused && !isMobile && (
63+
{isRightPanelFocused && !isMobile && !isSidebarOpen && (
6464
<>
6565
<SidebarTrigger />
6666
<NewAgentButton />

0 commit comments

Comments
 (0)