diff --git a/packages/webui/src/components/layout/top-bar.tsx b/packages/webui/src/components/layout/top-bar.tsx index 500e6f8d..6585ecb2 100644 --- a/packages/webui/src/components/layout/top-bar.tsx +++ b/packages/webui/src/components/layout/top-bar.tsx @@ -48,12 +48,12 @@ export function TopBar({ ); return ( -
+
{/* Mobile-only menu trigger. On desktop there's no collapse button — the sidebar auto-expands on hover/focus, and its boundary with the content is a soft surface-tone shift, not a hard border. */} {isMobile && ( - )} @@ -66,19 +66,19 @@ export function TopBar({ animate={{ opacity: 1, x: 0 }} exit={{ opacity: 0, x: 8 }} transition={{ duration: 0.18 }} - className="flex min-w-0 items-center gap-2" + className="flex min-w-0 flex-1 items-center gap-2" > - {PageIcon && } -

{meta?.label}

- {meta?.description} + {PageIcon && } +

{meta?.label}

+ {meta?.description} -
+
{shown.has('status') && ( @@ -108,7 +108,7 @@ export function TopBar({ onClick={() => setConfirmLogout(true)} aria-label="登出" title="登出" - className="text-muted-foreground hover:text-destructive" + className="topbar-control text-muted-foreground hover:text-destructive" >