Skip to content

Commit 4d2e44e

Browse files
authored
Merge pull request #1826 from Maniktherana/fix-graph-mobile
fix: add minimum width to graphs
2 parents 91cddf9 + 3fd5021 commit 4d2e44e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)