From 4ede23980c0bf6521922f2c6202cb41917770a5c Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Fri, 18 Sep 2026 00:34:09 +0800 Subject: [PATCH] fix(webui): drop the canvas corner when the sidebar is a menu The top-left radius exists to meet the desktop rail. On a narrow viewport the rail becomes a sheet, so the leftover curve sat on a full-bleed canvas. --- .../webui/src/components/layout/main-layout.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/webui/src/components/layout/main-layout.tsx b/packages/webui/src/components/layout/main-layout.tsx index b4aa8cf4..0daee2ae 100644 --- a/packages/webui/src/components/layout/main-layout.tsx +++ b/packages/webui/src/components/layout/main-layout.tsx @@ -104,14 +104,17 @@ export function MainLayout({ status, onLogout, notice, children }: MainLayoutPro )} - {/* Main column — a content "canvas" nested into the chrome with a rounded - top-left corner at the sidebar/topbar junction. It's a flex sibling of - the rail, so as the rail expands/collapses the whole canvas (and its - rounded corner) is pushed along with it. Depth comes from a soft shadow - + the canvas tone sitting on the (sidebar-toned) chrome, not a border. */} + {/* Main column — a content "canvas" nested into the chrome. The rounded + top-left corner only exists when the desktop rail is beside it; on + mobile the rail becomes a sheet, so a leftover corner would float + against the full-bleed canvas. It's a flex sibling of the rail, so as + the rail expands/collapses the whole canvas is pushed along with it. + Depth comes from a soft shadow + the canvas tone sitting on the + (sidebar-toned) chrome, not a border. */}