fix console log time and server card layout

This commit is contained in:
npc0-hue
2026-08-24 11:06:18 +08:00
parent 878f26c947
commit b69939a5ce
5 changed files with 42 additions and 4 deletions
+8
View File
@@ -58,6 +58,14 @@ describe("platform web shared theme CSS", () => {
expect(css).toContain(":root[data-custom-background=true].server-card-stat");
});
it("gives server cards enough room for long status labels", () => {
const css = compact(readThemeCss());
expect(css).toContain(".server-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr))");
expect(css).toContain(".server-card-head{display:grid;gap:8px;min-width:0}");
expect(css).toContain(".server-card-head>span:last-child{justify-self:start;white-space:normal");
});
it("keeps magical custom-background signal rows readable without the jelly wash", () => {
const css = compact(readThemeCss());