summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruser <user@node5.net>2024-03-24 01:52:12 +0100
committeruser <user@node5.net>2024-03-24 01:52:12 +0100
commitdef77d4be2a6658fa40bbe3614f17575aa6577ad (patch)
tree46a05f343a9c0e65ea4fd9e88bfc756dab4dc002
parente5254d253900d830f8e9f5011266811c356d4323 (diff)
chart page full scree
-rw-r--r--src/templates/chart.html4
-rw-r--r--src/templates/chart_page.html5
-rw-r--r--src/templates/index.html4
3 files changed, 8 insertions, 5 deletions
diff --git a/src/templates/chart.html b/src/templates/chart.html
index 213ace5..fdd6f7f 100644
--- a/src/templates/chart.html
+++ b/src/templates/chart.html
@@ -1,6 +1,4 @@
-<div style="height: 30em">
- <canvas id="histogram"></canvas>
-</div>
+<canvas id="histogram"></canvas>
<script defer>
var datasets = {{ histogram_data|safe }}
diff --git a/src/templates/chart_page.html b/src/templates/chart_page.html
index 0fb3028..461a701 100644
--- a/src/templates/chart_page.html
+++ b/src/templates/chart_page.html
@@ -1,4 +1,7 @@
{% extends 'base.html' %}
{% block content %}
-{% include 'chart.html' %}
+<style>
+body { min-height: 100vh; }
+</style>
+ {% include 'chart.html' %}
{% endblock %} \ No newline at end of file
diff --git a/src/templates/index.html b/src/templates/index.html
index 698ca6b..de14d74 100644
--- a/src/templates/index.html
+++ b/src/templates/index.html
@@ -16,7 +16,9 @@
</div>
<div class="row">
<div class="col">
- {% include 'chart.html' %}
+ <div style="height: 30em">
+ {% include 'chart.html' %}
+ </div>
</div>
</div>
<div class="row">