From a94b52dbc68b136d21f1c5ea0eb18a3622399148 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Mon, 12 May 2025 11:44:27 +0200 Subject: [PATCH] refactor(Dashboard touch events): fixes the touch event behaviors for the widgets and the dashboard --- public/css/components/dashboard.css | 1 + public/js/components/Dashboard/Item.js | 6 +++++- public/js/components/Dashboard/Section.js | 5 +++-- public/js/components/Drop/Grid.js | 19 +++++++++++-------- public/js/components/Drop/Grid/Item.js | 15 ++++++++------- 5 files changed, 28 insertions(+), 18 deletions(-) diff --git a/public/css/components/dashboard.css b/public/css/components/dashboard.css index 55cd9a8ed..f48a25418 100644 --- a/public/css/components/dashboard.css +++ b/public/css/components/dashboard.css @@ -15,6 +15,7 @@ height: 100%; width: 100%; background-color:white; + position:relative; } .empty-tile-hover:hover { diff --git a/public/js/components/Dashboard/Item.js b/public/js/components/Dashboard/Item.js index b7a334b92..beaca64f0 100644 --- a/public/js/components/Dashboard/Item.js +++ b/public/js/components/Dashboard/Item.js @@ -41,6 +41,8 @@ export default { "item_data", "place", "setup", + "dragstate", + "resizeOverlay" ], computed: { maxHeight(){ @@ -153,7 +155,8 @@ export default { -
+
+
@@ -221,5 +224,6 @@ export default {
+
`, }; diff --git a/public/js/components/Dashboard/Section.js b/public/js/components/Dashboard/Section.js index 17c2ac004..fb5caa965 100644 --- a/public/js/components/Dashboard/Section.js +++ b/public/js/components/Dashboard/Section.js @@ -209,7 +209,7 @@ export default { }); }, template: ` -

+

{{sectionNameTranslation()}}:

@@ -217,10 +217,11 @@ export default {