From 33f076b1b63f9c0d2c9a145c5c7f477017fbc65c Mon Sep 17 00:00:00 2001 From: baldo Date: Tue, 2 Aug 2022 17:21:05 +0200 Subject: [PATCH] Responsive statistics card in admin dashboard. --- frontend/src/scss/_variables.scss | 8 +++++++ frontend/src/views/AdminDashboardView.vue | 29 ++++++++++++++++------- 2 files changed, 28 insertions(+), 9 deletions(-) diff --git a/frontend/src/scss/_variables.scss b/frontend/src/scss/_variables.scss index bfe7cb1..71b8eba 100644 --- a/frontend/src/scss/_variables.scss +++ b/frontend/src/scss/_variables.scss @@ -89,6 +89,14 @@ $nav-header-logo-margin: 0 0.5em 0 0; $nav-footer-padding: 0.75em; // Statistics +$statistics-card-widths: ( + xs: 100%, + sm: 50%, + md: 50%, + lg: 33.3333%, + xl: 33.3333%, + xxl: 33.3333%, +); $statistics-card-height: 4.5em; $statistics-card-margin: 0.5em; $statistics-card-padding: 0.3em 0.5em; diff --git a/frontend/src/views/AdminDashboardView.vue b/frontend/src/views/AdminDashboardView.vue index c8eeaef..c09f6a3 100644 --- a/frontend/src/views/AdminDashboardView.vue +++ b/frontend/src/views/AdminDashboardView.vue @@ -2,6 +2,7 @@ import StatisticsCard from "@/components/admin/StatisticsCard.vue"; import {useStatisticsStore} from "@/stores/statistics"; import {ComponentVariant, MonitoringState} from "@/types"; +import PageContainer from "@/components/page/PageContainer.vue"; const statistics = useStatisticsStore(); @@ -13,7 +14,7 @@ refresh();