minor fix

This commit is contained in:
adisposkofh
2026-04-21 11:19:36 +02:00
parent 6a53c9fae4
commit 6c2820f900
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -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: {
+1 -1
View File
@@ -105,7 +105,7 @@ export default {
});
},
template: /*html*/ `
<div :class="{'overflow-y-scroll pb-3': isMobile}" class="overflow-x-hidden">
<div :class="{'pb-3': isMobile}" class="overflow-x-hidden">
<h2 ref="newsPageHeading" class="fhc-primary-color">News</h2>
<hr/>
<pagination