diff --git a/src/components/benchmark-body.tsx b/src/components/benchmark-body.tsx index 326d3573..7104bd79 100644 --- a/src/components/benchmark-body.tsx +++ b/src/components/benchmark-body.tsx @@ -291,7 +291,20 @@ export function BenchmarkBody({ {!isDraft && ( <> -
+
+ {/* View switcher floats in the card's top-right corner so it + doesn't reserve a vertical band of its own. The chart fills + the card top-to-bottom; the switcher sits in the existing + card padding and never competes with the chart for space. + Popover opens downward (default) since there's room below + the corner before the chart geometry begins. */} +
+ +
{/* Fade-in until the localStorage view preference resolves. Without this the SSR-default view paints first, then useViewPreference swaps to the saved view in a visible @@ -332,20 +345,6 @@ export function BenchmarkBody({ /> )}
- {/* Footer row hosts the view switcher. Sat at the top before - this revision and ate ~40 px of header to a button most - readers never used; bottom placement keeps the chart - pinned to the top of the card and lets the control hide - in the visual margin. Popover opens upward so it doesn't - spill into the product ledger below. */} -
- -