From 8a05af0342e5c61bd1c0e9d1ddc3791c204be771 Mon Sep 17 00:00:00 2001 From: Jiayuan Zhang Date: Sun, 12 Jul 2026 03:36:13 +0800 Subject: [PATCH] fix(agents): pin capability/settings sub-nav while content scrolls (MUL-4426) (#5280) The agent detail page wrapped both the sidebar rail and the content pane in one scroll container, so scrolling any Capabilities/Settings tab dragged the Instructions/Skills/MCP rail out of view. Split scrolling on md+ like settings-page.tsx: the outer container stops scrolling and each pane scrolls itself. Below md the page still scrolls as one, and the Overview/Work views keep whole-page scrolling. Co-authored-by: Lambda Co-authored-by: multica-agent --- .../agents/components/agent-overview-pane.tsx | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/packages/views/agents/components/agent-overview-pane.tsx b/packages/views/agents/components/agent-overview-pane.tsx index 25030a8e50..1aaa23087f 100644 --- a/packages/views/agents/components/agent-overview-pane.tsx +++ b/packages/views/agents/components/agent-overview-pane.tsx @@ -297,6 +297,7 @@ export function AgentOverviewPane({ const activeSecondaryTab = secondaryTabs.find( (tab) => tab.id === effectiveView, ); + const isSecondaryLayout = secondaryTabs.length > 0 && activeSecondaryTab != null; return (
@@ -326,7 +327,15 @@ export function AgentOverviewPane({
-
+ {/* Overview/Work scroll as one page. Sidebar views split scrolling on + md+ (nav rail pinned, content pane scrolls) like settings-page.tsx; + below md the rail is a horizontal strip and the page scrolls whole. */} +
{effectiveView === "overview" && (
@@ -347,8 +356,8 @@ export function AgentOverviewPane({ )} {secondaryTabs.length > 0 && activeSecondaryTab && ( -
-