Refine management terminal logs and command UX

This commit is contained in:
npc0-hue
2026-08-03 14:28:31 +08:00
parent a1bf3aa86a
commit cf4d0d0ba5
4 changed files with 295 additions and 58 deletions
+8 -1
View File
@@ -168,9 +168,16 @@ describe("platform web shared theme CSS", () => {
it("keeps the management terminal opaque and large", () => {
const css = compact(readThemeCss());
expect(css).toContain(".terminal-drawer-backdrop{align-items:flex-end;justify-content:center;padding:10dvh00;background:#000;backdrop-filter:none}");
expect(css).toContain(".management-terminal-drawer{width:100%;max-width:none;height:90dvh;max-height:90dvh");
expect(css).toContain("background:#05090f;backdrop-filter:none");
expect(css).toContain("background:#000;backdrop-filter:none;box-shadow:none");
expect(css).toContain(".management-terminal-body{height:100%;grid-template-rows:minmax(0,1fr)auto");
expect(css).toContain(".terminal-output-panel{display:grid;grid-template-rows:autominmax(0,1fr);min-height:0;border:1pxsolid#222;border-radius:8px;background:#000");
expect(css).toContain(".terminal-output-topbar{display:flex;align-items:center;justify-content:space-between");
expect(css).toContain(".terminal-line{display:grid;grid-template-columns:76px148pxminmax(0,1fr)");
expect(css).toContain(".terminal-line-success.terminal-stream,.terminal-line-success.terminal-text{color:#7ee787}");
expect(css).toContain(".terminal-line-warn.terminal-stream,.terminal-line-warn.terminal-text{color:#d29922}");
expect(css).toContain(".terminal-line-error.terminal-stream,.terminal-line-error.terminal-text{color:#ff7b72}");
expect(css).toContain(".terminal-quick-command-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))");
});