Skip to content

Commit 75f5ac8

Browse files
committed
Auto merge of #3151 - Turbo87:chart-size, r=pichfl
DownloadGraph: Set `maintainAspectRatio: false` and use `min-height` instead Without this the graph looks very pressed together on mobile devices r? `@pichfl`
2 parents ecd775b + 06a8f96 commit 75f5ac8

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

app/components/download-graph.hbs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<div
2-
local-class="
3-
wrapper
4-
{{if this.chartjs.loadTask.lastSuccessful.value "auto-height"}}
5-
"
2+
local-class="wrapper"
63
data-test-download-graph
74
...attributes
85
{{did-insert this.loadChartJs}}

app/components/download-graph.js

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export default class DownloadGraph extends Component {
2525
type: 'line',
2626
data: this.data,
2727
options: {
28+
maintainAspectRatio: false,
2829
layout: {
2930
padding: 10,
3031
},

app/components/download-graph.module.css

-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
border: solid 1px var(--gray-border);
55
border-radius: 5px;
66
min-height: 400px;
7-
8-
&.auto-height {
9-
min-height: auto;
10-
}
117
}
128

139
.spinner {

0 commit comments

Comments
 (0)