From 95815ca21a4aae5a2782ed5e6cdd2611d0757cca Mon Sep 17 00:00:00 2001 From: Craig Bassett Date: Fri, 2 Apr 2021 16:17:29 -0500 Subject: [PATCH] feat: adjust print stats layout for tablet & down Signed-off-by: Craig Bassett --- .../widgets/stats/PrinterStatsCard.vue | 16 ++++++++++++---- todo.md | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/components/widgets/stats/PrinterStatsCard.vue b/src/components/widgets/stats/PrinterStatsCard.vue index b57228e2e8..3e09d3167f 100644 --- a/src/components/widgets/stats/PrinterStatsCard.vue +++ b/src/components/widgets/stats/PrinterStatsCard.vue @@ -16,6 +16,7 @@ class="my-1" > +
@@ -31,7 +32,7 @@
- +
{{ $t('app.general.label.total_jobs') }}
{{ rollup.total_jobs }}
@@ -39,7 +40,7 @@
{{ $filters.formatCounterTime(rollup.longest_job) }}
- +
{{ $t('app.general.label.total_time') }}
{{ $filters.formatCounterTime(rollup.total_time) }}
@@ -47,7 +48,7 @@
{{ $filters.formatCounterTime(rollup.total_avg) }}
- +
{{ $t('app.general.label.total_print_time') }}
{{ $filters.formatCounterTime(rollup.total_print_time) }}
@@ -55,7 +56,7 @@
{{ $filters.formatCounterTime(rollup.print_avg) }}
- +
{{ $t('app.general.label.total_filament') }}
{{ $filters.getReadableLengthString(rollup.total_filament_used) }}
@@ -78,6 +79,13 @@ import JobHistory from '@/components/widgets/history/JobHistory.vue' } }) export default class PrinterStatsCard extends Vue { + get breakpoint () { + if (this.$vuetify.breakpoint.mdAndDown) { + return 6 + } + return 3 + } + get rollup () { return this.$store.getters['history/getRollUp'] } diff --git a/todo.md b/todo.md index 3de7043bb8..b2cba3e35a 100644 --- a/todo.md +++ b/todo.md @@ -3,7 +3,7 @@ ## Next Up - fix filament lengths on history tab -- impl new component reset +- impl new version recovery ### Features