From 6c2820f90034e9b5aa3a8c3905203956589bfe23 Mon Sep 17 00:00:00 2001 From: adisposkofh Date: Tue, 21 Apr 2026 11:19:36 +0200 Subject: [PATCH] minor fix --- public/js/apps/Dashboard/Fhc.js | 8 ++++++++ public/js/components/Cis/Cms/News.js | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/public/js/apps/Dashboard/Fhc.js b/public/js/apps/Dashboard/Fhc.js index c9c81cddb..5d8686c72 100644 --- a/public/js/apps/Dashboard/Fhc.js +++ b/public/js/apps/Dashboard/Fhc.js @@ -234,10 +234,18 @@ const app = Vue.createApp({ }), components: {}, inject: ["isMobile"], + computed: { + isMobile() { + const smallScreen = window.matchMedia("(max-width: 767px)").matches; + const touchCapable = ("ontouchstart" in window) || navigator.maxTouchPoints > 0; + return smallScreen;// && touchCapable; + }, + }, provide() { return { // provide injectable & watchable language property language: Vue.computed(() => this.$p.user_language), renderers: Vue.computed(() => this.renderers), + isMobile: this.isMobile, } }, methods: { diff --git a/public/js/components/Cis/Cms/News.js b/public/js/components/Cis/Cms/News.js index bc800094a..edf700db5 100644 --- a/public/js/components/Cis/Cms/News.js +++ b/public/js/components/Cis/Cms/News.js @@ -105,7 +105,7 @@ export default { }); }, template: /*html*/ ` -
+

News