From 92319b9b291af5b362a01f1d0b342efd758d1441 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Mon, 3 Jun 2024 10:27:03 +0200 Subject: [PATCH] quick fix for overlapping dashboard elements on mobile phones --- public/css/components/dashboard.css | 2 +- public/js/components/Dashboard/Section.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/css/components/dashboard.css b/public/css/components/dashboard.css index b6ad81d2d..9da199442 100755 --- a/public/css/components/dashboard.css +++ b/public/css/components/dashboard.css @@ -19,7 +19,7 @@ } @media(max-width: 577px) { :root { - --fhc-dashboard-grid-size: 2; + --fhc-dashboard-grid-size: 1; } } diff --git a/public/js/components/Dashboard/Section.js b/public/js/components/Dashboard/Section.js index e48b580ed..4aa7c823f 100755 --- a/public/js/components/Dashboard/Section.js +++ b/public/js/components/Dashboard/Section.js @@ -32,7 +32,7 @@ export default { computed: { items() { return this.widgets.map(item => { - return {...item, ...(item.place[this.gridWidth] || {})}; + return {...item, ...(item.place[this.gridWidth] || {h: 1, w:1, x:0, y:0})}; }); } },