From 2f1edfeeab733e171c3f66cf98df296e6ce214b3 Mon Sep 17 00:00:00 2001 From: adisposkofh Date: Tue, 21 Apr 2026 11:21:50 +0200 Subject: [PATCH] minor fix --- public/js/apps/Dashboard/Fhc.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/public/js/apps/Dashboard/Fhc.js b/public/js/apps/Dashboard/Fhc.js index c9c81cddb..956af1a94 100644 --- a/public/js/apps/Dashboard/Fhc.js +++ b/public/js/apps/Dashboard/Fhc.js @@ -232,12 +232,19 @@ const app = Vue.createApp({ appSideMenuEntries: {}, renderers: null, }), + computed: { + isMobile() { + const smallScreen = window.matchMedia("(max-width: 767px)").matches; + const touchCapable = ("ontouchstart" in window) || navigator.maxTouchPoints > 0; + return smallScreen;// && touchCapable; + }, + }, components: {}, - inject: ["isMobile"], provide() { return { // provide injectable & watchable language property language: Vue.computed(() => this.$p.user_language), renderers: Vue.computed(() => this.renderers), + isMobile: this.isMobile, } }, methods: {