better responsivness #2416

This commit is contained in:
2024-02-05 15:57:09 +01:00
parent b2614bf755
commit 609964b358
3 changed files with 52 additions and 11 deletions

View File

@@ -149,6 +149,21 @@ export default {
}
},
deep: true
},
map_mode: {
handler (n, o) {
console.log('concernement watch map_mode', o, n);
if(n === "proximite" || n === "superposition"){
// as we have two content to show multiply the cartouch with by 2
// necessary for mapitem opening scale and position
this.setCartoucheWidth(2)
}else{
// as we have one content to show multiply the cartouch with by 1
// necessary for mapitem opening scale and position
this.setCartoucheWidth(1)
}
},
deep: true
}
},