Compare commits

..

4 Commits

Author SHA1 Message Date
adisposkofh b90dabeb2c minor fix 2026-04-21 11:23:17 +02:00
adisposkofh 2f1edfeeab minor fix 2026-04-21 11:21:50 +02:00
adisposkofh 414d8bd383 minor fix 2026-04-20 11:40:26 +02:00
adisposkofh 1a813e52ce minor fix 2026-04-20 09:50:41 +02:00
2 changed files with 10 additions and 11 deletions
+8
View File
@@ -233,10 +233,18 @@ const app = Vue.createApp({
renderers: null,
}),
components: {},
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: {
+2 -11
View File
@@ -110,6 +110,8 @@ export default {
<div
:class="{'flex-grow-1': !isMobile, 'collapse multi-collapse collapse-horizontal': isMobile}"
id="header-searchbar-collapsible"
@[\`show.bs.collapse\`]="isSearchShownInMobileView = true"
@[\`hidden.bs.collapse\`]="isSearchShownInMobileView = false"
>
<div
:class="{open: showresult, closed: showresult, 'px-3': isMobile}"
@@ -251,17 +253,6 @@ export default {
"No origin defined in the searchoptions for the searchbar, please define the origin property in the searchbaroptions to allow reliable storage of searchstr and searchtypes accross applications.",
);
}
document
.getElementById("header-searchbar-collapsible")
.addEventListener("show.bs.collapse", (e) => {
this.isSearchShownInMobileView = true;
});
document
.getElementById("header-searchbar-collapsible")
.addEventListener("hidden.bs.collapse", (e) => {
this.isSearchShownInMobileView = false;
});
},
updated() {
if (this.showresult) {