diff options
| author | user <user@node5.net> | 2024-03-24 01:52:12 +0100 |
|---|---|---|
| committer | user <user@node5.net> | 2024-03-24 01:52:12 +0100 |
| commit | def77d4be2a6658fa40bbe3614f17575aa6577ad (patch) | |
| tree | 46a05f343a9c0e65ea4fd9e88bfc756dab4dc002 | |
| parent | e5254d253900d830f8e9f5011266811c356d4323 (diff) | |
chart page full scree
| -rw-r--r-- | src/templates/chart.html | 4 | ||||
| -rw-r--r-- | src/templates/chart_page.html | 5 | ||||
| -rw-r--r-- | src/templates/index.html | 4 |
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"> |
