From 77a0077be179060a6a11ba1cf68ca95d769fb81c Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Fri, 19 Oct 2018 10:33:32 +0100 Subject: [PATCH] Totals now only show if they actually have a value. --- frontend/src/views/Observation.vue | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/frontend/src/views/Observation.vue b/frontend/src/views/Observation.vue index b9a66c6..693194c 100644 --- a/frontend/src/views/Observation.vue +++ b/frontend/src/views/Observation.vue @@ -6,49 +6,49 @@ {{type}} / {{description}} - +
{{ totals[0] }}
- +
{{ totals[1] }}
- +
{{ totals[2] }}
- +
{{ totals[3] }}
- +
{{ totals[4] }}
- +
{{ totals[5] }}
- +
{{ totals[6] }}
- +
{{ totals[7] }}
@@ -340,6 +340,7 @@ export default { top: 20%; /* Stay at the top */ left: 0; overflow-x: hidden; /* Disable horizontal scroll */ + overflow-y: hidden; padding-top: 20px; } @@ -347,14 +348,14 @@ export default { margin-bottom: 25%; } -@media screen and (max-height: 500px) { +@media screen and (max-height: 600px) { .sidebar { top: 0; /* Stay at the top */ } } img { - height: 80px; + height: 60px; object-fit: contain; }