Skip to content

Commit f7c2848

Browse files
Temp Fix Resizing Graphs
- This fix is kind of ugly but now the two bottom graphs should resize as intended. Very weird bug that I can't make these two canvas responsive. Only allows for one. The 30 day canvas seems to be uneffected.
1 parent 8e6d59f commit f7c2848

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/graphTopics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function createTopicHoursGraph() {
4343
}
4444
},
4545
maintainAspectRatio: false,
46-
responsive: true,
46+
responsive: false,
4747
scales: {
4848
y: {
4949
display: true, // Display y-axis

src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ h1,h2,h3,h4,h5,h6 {
217217

218218
.bottom-grid {
219219
display: grid;
220-
grid-template-columns: 1fr 1fr 1fr;
220+
grid-template-columns: 1fr 1fr auto;
221221
grid-gap: 5px;
222222
overflow: hidden;
223223
}

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h3>10.5</h3>
8787
</div>
8888
<div class="bottom-right-graphs">
8989
<div class="container">
90-
<canvas id="topicHoursGraph"></canvas>
90+
<canvas id="topicHoursGraph" style="width: 100%; height: auto;"></canvas>
9191
</div>
9292
<div class="container">
9393
<canvas id="annualHoursGraph"></canvas>

0 commit comments

Comments
 (0)