From 4660e8133d61bd291f7035f13f672f6c7dcbf50f Mon Sep 17 00:00:00 2001 From: Willie Date: Mon, 21 Sep 2026 14:05:29 +0800 Subject: [PATCH] fix(ui): let the project MCP tab scroll with the page The rail layout gives its list a viewport-height scroll box, which suits the MCP page but nests a second scroll area under the project page's header and tabs, and its narrow padding clipped Playful borders. --- ui/src/components/StatusRail.tsx | 5 +++-- ui/src/components/mcp/MCPProjectView.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/src/components/StatusRail.tsx b/ui/src/components/StatusRail.tsx index 4ba1a0100..6080f730e 100644 --- a/ui/src/components/StatusRail.tsx +++ b/ui/src/components/StatusRail.tsx @@ -19,11 +19,12 @@ const PANE = 'sticky top-6 max-h-[calc(100vh-11rem)]'; * The list side is padded by what it is pulled out by, so the scroll box does not clip shadows. * Its children must not shrink: `.ss-list` clips its corners with overflow:hidden, which lets a * flex item go below its content height, and it would be squashed instead of scrolled. + * `pageScroll` keeps the list in the page's own scroll, for a page that has more above it. */ -export function RailLayout({ rail, children }: { rail: ReactNode; children: ReactNode }) { +export function RailLayout({ rail, children, pageScroll }: { rail: ReactNode; children: ReactNode; pageScroll?: boolean }) { return (
-
*]:shrink-0`}>{children}
+
*]:shrink-0`}>{children}
); diff --git a/ui/src/components/mcp/MCPProjectView.tsx b/ui/src/components/mcp/MCPProjectView.tsx index 94509a99f..3a2b58857 100644 --- a/ui/src/components/mcp/MCPProjectView.tsx +++ b/ui/src/components/mcp/MCPProjectView.tsx @@ -110,7 +110,7 @@ export default function MCPProjectView({ data, root, offered, onChanged, onRemov return (
- }> + }>
{t('mcp.targets')}