diff --git a/ui/src/assets/css/main.css b/ui/src/assets/css/main.css index eb3a8c7..49aebd0 100644 --- a/ui/src/assets/css/main.css +++ b/ui/src/assets/css/main.css @@ -116,3 +116,7 @@ hr { padding: 20px; border-radius: 5px; } + +.card-narrow { + padding: 5px !important; +} \ No newline at end of file diff --git a/ui/src/components/dashboard/Histogram.vue b/ui/src/components/dashboard/Histogram.vue index 3df9185..9b64e36 100644 --- a/ui/src/components/dashboard/Histogram.vue +++ b/ui/src/components/dashboard/Histogram.vue @@ -2,18 +2,22 @@
Histogram
-

- Showing data in period {{from}} - {{to}} ({{period}}s), - {{ numberOfEvents }} events with - bin size {{ binSize }}s -

+
+
+

+ Showing data in period {{from}} - {{to}} ({{period}}s), + {{ numberOfEvents }} events with + bin size {{ binSize }}s +

+
+
+ +
+
-
+
-
diff --git a/ui/src/components/dashboard/Location.vue b/ui/src/components/dashboard/Location.vue index 0817fe8..0946e80 100644 --- a/ui/src/components/dashboard/Location.vue +++ b/ui/src/components/dashboard/Location.vue @@ -3,7 +3,7 @@
Location
-
+
diff --git a/ui/src/store.js b/ui/src/store.js index ad48410..90aa2de 100644 --- a/ui/src/store.js +++ b/ui/src/store.js @@ -3,7 +3,7 @@ import Vuex from 'vuex'; import moment from 'moment'; -const SERIES_MAX_SIZE = 100; +const SERIES_MAX_SIZE = 50; Vue.use(Vuex); @@ -89,7 +89,7 @@ const mutations = { let last = state.series[state.series.length - 1]; let lastUTCUnixTime = last ? last.UTCUnixTime : 0; let lastSubSeconds = last ? last.SubSeconds : 0; - if (item.UTCUnixTime + item.SubSeconds >= lastUTCUnixTime + lastSubSeconds) { + if (item.UTCUnixTime + item.SubSeconds > lastUTCUnixTime + lastSubSeconds) { state.series.push(item); } }