Skip to content

Commit 22897a7

Browse files
committed
Fix dashboard spacing and stabilize coverage CI
1 parent 15b7680 commit 22897a7

3 files changed

Lines changed: 30 additions & 1 deletion

File tree

scripts/run-workflow.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ function parseOptions(argv) {
2929
export function commandAdapter(command, prompt, timeoutMs = 120000) {
3030
if (!command.length) throw new Error("The command adapter requires an executable after --.")
3131
return new Promise((resolve, reject) => {
32-
const child = spawn(command[0], command.slice(1), { shell: false, stdio: ["pipe", "pipe", "pipe"], env: process.env })
32+
const childEnv = { ...process.env }
33+
delete childEnv.NODE_V8_COVERAGE
34+
const child = spawn(command[0], command.slice(1), { shell: false, stdio: ["pipe", "pipe", "pipe"], env: childEnv })
3335
const output = []
3436
let bytes = 0
3537
let timedOut = false

src/layout-fixes.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* Wide dashboard rows should read as deliberate sections, not leave page-sized holes
2+
when one supporting card is shorter than its neighbor. Keep mobile and focused
3+
layouts content-sized, and balance the interior space of short chart/goal cards. */
4+
@media (min-width: 1280px) {
5+
[data-layout="dashboard"] > [data-kind] {
6+
align-self: stretch;
7+
}
8+
9+
[data-layout="dashboard"] > [data-kind="bar-chart"],
10+
[data-layout="dashboard"] > [data-kind="progress"] {
11+
display: flex;
12+
flex-direction: column;
13+
}
14+
15+
[data-layout="dashboard"] > [data-kind="bar-chart"] > :last-child,
16+
[data-layout="dashboard"] > [data-kind="progress"] > :last-child {
17+
display: flex;
18+
flex: 1;
19+
align-items: center;
20+
}
21+
22+
[data-layout="dashboard"] > [data-kind="bar-chart"] > :last-child > *,
23+
[data-layout="dashboard"] > [data-kind="progress"] > :last-child > * {
24+
width: 100%;
25+
}
26+
}

src/main.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { StrictMode } from "react"
22
import { createRoot } from "react-dom/client"
33
import { App } from "@/App"
44
import "@/index.css"
5+
import "@/layout-fixes.css"
56

67
createRoot(document.getElementById("root")!).render(
78
<StrictMode>

0 commit comments

Comments
 (0)