PR Checks / Frontend Typecheck + Tests (pull_request) Successful in 9m37s
PR Checks / Backend Smoke (pull_request) Successful in 7s
PR Checks / Build Backend (no push) (pull_request) Successful in 16s
PR Checks / Build Frontend (no push) (pull_request) Successful in 45s
PR Checks / Build Pipeline (no push) (pull_request) Successful in 10s
PR Checks / AI Code Review (Claude) (pull_request) Successful in 17s
ComparisonChart runs Chart.js with maintainAspectRatio:false, so it sizes to its container's height — which must be definite. TrendsExplorer gave .chartBox a min-height, which doesn't resolve the chart wrapper's height:100%, so Chart.js fell back to its ~150px default: a squashed 8.6:1 sliver that didn't match the mockups. Set a definite height (420px desktop, 360px mobile where the chips row sits above the canvas). Verified on staging by patching the live height: canvas went from 1287x150 to 1287x392 (desktop) / 284 (mobile) — proper ~3:1 proportions matching the mockup, with the England dashed line, COVID/2021-22 gap and table all reading correctly. An e2e guard asserts the trends canvas is taller than 220px so the squash can't regress. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0146VHeLAWjDVE2B5uU67jCB
109 lines
2.0 KiB
CSS
109 lines
2.0 KiB
CSS
.explore {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.explore summary {
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
color: var(--accent-coral-dark);
|
|
padding: 0.85rem 1.1rem;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.explore[open] summary {
|
|
border-radius: 8px 8px 0 0;
|
|
}
|
|
|
|
.inner {
|
|
border: 1px solid var(--border-light);
|
|
border-top: none;
|
|
border-radius: 0 0 8px 8px;
|
|
background: var(--bg-card);
|
|
padding: 1.25rem 1.5rem;
|
|
}
|
|
|
|
.picker {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
margin-bottom: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.picker label {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.picker select {
|
|
font-family: inherit;
|
|
font-size: 0.9rem;
|
|
padding: 0.4rem 0.6rem;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-light);
|
|
background: var(--bg-card);
|
|
color: var(--text-primary);
|
|
max-width: 100%;
|
|
}
|
|
|
|
.desc {
|
|
font-size: 0.78rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.progressNote {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
margin: 0 0 1rem;
|
|
}
|
|
|
|
/* ComparisonChart runs Chart.js with maintainAspectRatio:false, so it fills
|
|
its container's height — which must be *definite*. A min-height alone does
|
|
not resolve the chart wrapper's height:100%, leaving Chart.js to fall back
|
|
to its ~150px default (a squashed sliver). Give it a real height. */
|
|
.chartBox {
|
|
height: 420px;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
/* Taller on mobile: the mobile-only school chips sit above the canvas and
|
|
wrap to two rows for 3+ schools, so the plot keeps a usable height. */
|
|
.chartBox {
|
|
height: 360px;
|
|
}
|
|
}
|
|
|
|
.tableWrapper {
|
|
overflow-x: auto;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.table th,
|
|
.table td {
|
|
text-align: left;
|
|
padding: 0.6rem 0.75rem;
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
.table th {
|
|
background: var(--bg-secondary);
|
|
font-size: 0.8rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.yearCell {
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|