From 465cedb29bea3714b423ba68c24c4de1f7e13328 Mon Sep 17 00:00:00 2001 From: "qingjie.du" Date: Sun, 23 Aug 2026 22:13:17 +0900 Subject: [PATCH] Improve dashboard header layout (centered title, grid) and ignore .omo/ --- .gitignore | 3 ++ .../src/dashboard/dashboard-server.ts | 35 +++++++++++++++---- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index a298fdf..0846154 100644 --- a/.gitignore +++ b/.gitignore @@ -140,3 +140,6 @@ dist # Deploy secrets deploy/.env + +# OpenCode agent session state +.omo/ diff --git a/platform_impl/src/dashboard/dashboard-server.ts b/platform_impl/src/dashboard/dashboard-server.ts index de26daa..c2bc895 100644 --- a/platform_impl/src/dashboard/dashboard-server.ts +++ b/platform_impl/src/dashboard/dashboard-server.ts @@ -180,26 +180,42 @@ function inlineDashboard(passkeyEnabled: boolean): string { /* ── Header ── */ .header { - display: flex; align-items: center; gap: 14px; + display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); + align-items: center; gap: 14px; padding: 20px 32px; background: rgba(15,23,42,.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(99,102,241,.25); position: sticky; top: 0; z-index: 10; } - .header img { + .header-side { + display: flex; align-items: center; + min-width: 0; + } + .header-side.right { + justify-content: flex-end; + } + .header-logo-placeholder { + visibility: hidden; + flex: 0 0 auto; + } + .header-logo-placeholder img { height: 36px; width: auto; background: #fff; border-radius: 8px; padding: 3px; } + .header-title { + text-align: center; + min-width: 0; + } .header h1 { font-size: 22px; font-weight: 700; margin: 0; background: linear-gradient(90deg, #818cf8, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } - .header .spacer { flex: 1; } .header .status { font-size: 12px; color: #94a3b8; display: flex; align-items: center; gap: 6px; + white-space: nowrap; } .header .status .dot { width: 8px; height: 8px; border-radius: 50%; @@ -322,10 +338,15 @@ function inlineDashboard(passkeyEnabled: boolean): string {
- MCPlet logo -

MCPletA2A Dashboard

-
-
Auto-refresh 10s
+
+ +
+
+

MCPletA2A Dashboard

+
+
+
Auto-refresh 10s
+