Skip to content

Commit 3fd5021

Browse files
committed
refac: set min width through opts
1 parent 2ee6dad commit 3fd5021

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

site/frontend/src/graph/render.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ export function renderPlots(
492492
cacheStates[Object.keys(cacheStates)[0]].interpolated_indices;
493493

494494
let plotOpts = genPlotOpts({
495-
width: 380,
495+
width,
496496
height: 300,
497497
yAxisLabel,
498498
series: seriesOpts,

site/frontend/src/pages/graphs/page.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function loadGraphData(selector: GraphsSelector, loading: Ref<boolean>) {
6868
// Then draw the plots.
6969
await nextTick();
7070
71-
const width = Math.floor(window.innerWidth / 4) - 40;
71+
const width = Math.max(Math.floor(window.innerWidth / 4) - 40, 380);
7272
const opts = {width};
7373
7474
// If we select a smaller subset of benchmarks, then just show them.

0 commit comments

Comments
 (0)