From 3527d011a6142436542f56d907e345016ae5f9c6 Mon Sep 17 00:00:00 2001 From: David Hill Date: Fri, 13 Mar 2026 12:51:23 +0000 Subject: [PATCH] fix(app): refine status modal layout and spacing --- .../app/src/components/status-popover.tsx | 210 +++++++++--------- packages/ui/src/components/tabs.css | 2 + 2 files changed, 111 insertions(+), 101 deletions(-) diff --git a/packages/app/src/components/status-popover.tsx b/packages/app/src/components/status-popover.tsx index ff4ed5658b..bd12bdd841 100644 --- a/packages/app/src/components/status-popover.tsx +++ b/packages/app/src/components/status-popover.tsx @@ -194,7 +194,7 @@ export function StatusModal(props: { directory: string }) { position="top" style={{ "--dialog-top": "33vh" } as any} fit - class="!max-h-[33vh]" + class="!max-h-[33vh] [&_[data-slot=dialog-header]]:bg-background-base" transition > {sortedServers().length > 0 ? `${sortedServers().length} ` : ""} @@ -230,55 +230,57 @@ export function StatusModal(props: { directory: string }) {
- - {(s) => { - const key = ServerConnection.key(s) - const isBlocked = () => health[key]?.healthy === false - return ( - - ) - }} - + + + + {language.t("common.default")} + + + } + > +
+ + + + + + ) + }} + +
} > - - {(name) => { - const status = () => mcpStatus(name) - const enabled = () => status() === "connected" - return ( - - ) - }} - + {name} +
event.stopPropagation()}> + mcp.toggle(name)} + /> +
+ + ) + }} + +
@@ -347,20 +351,22 @@ export function StatusModal(props: { directory: string }) { } > - - {(item) => ( -
-
- {item.name || item.id} -
- )} - +
+ + {(item) => ( +
+
+ {item.name || item.id} +
+ )} + +
@@ -373,14 +379,16 @@ export function StatusModal(props: { directory: string }) { when={plugins().length > 0} fallback={
{pluginEmpty()}
} > - - {(plugin) => ( -
-
- {plugin} -
- )} - +
+ + {(plugin) => ( +
+
+ {plugin} +
+ )} + +
diff --git a/packages/ui/src/components/tabs.css b/packages/ui/src/components/tabs.css index 54c5598de2..b586a8f3b8 100644 --- a/packages/ui/src/components/tabs.css +++ b/packages/ui/src/components/tabs.css @@ -6,6 +6,7 @@ width: 100%; height: 100%; + min-height: 0; display: flex; flex-direction: column; background-color: var(--background-stronger); @@ -122,6 +123,7 @@ [data-slot="tabs-content"] { overflow-y: auto; flex: 1; + min-height: 0; /* Hide scrollbar */ scrollbar-width: none;