Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/routes/memory/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@
/* Memory uses the version palette's blue as its accent. */
--accent: #2a78d6;
width: 100%;
max-width: 1200px;
}

h1 {
Expand Down Expand Up @@ -224,9 +223,15 @@
border-bottom: 1px solid var(--border-subtle);
}

/* At most two columns: each track is at least half the row (minus the gap),
so a third never fits. When half the row is narrower than 480px, there is
one column. The outer min() keeps that column from overflowing on phones. */
.charts-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
grid-template-columns: repeat(
auto-fit,
minmax(min(100%, max(480px, calc((100% - var(--space-4)) / 2))), 1fr)
);
gap: var(--space-4);
}

Expand Down
2 changes: 1 addition & 1 deletion src/routes/memory/ProbeChart.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
/* Fixed height with maintainAspectRatio false, so the grid rows line up
regardless of how many legend entries each chart has. */
.chart-wrapper {
height: var(--chart-height-sm);
height: var(--chart-height);
position: relative;
}

Expand Down
Loading