better cursor on map

This commit is contained in:
Bachir Soussi Chiadmi 2023-05-23 09:50:32 +02:00
parent 302252a1c1
commit 19da070e31
2 changed files with 11 additions and 0 deletions

View File

@ -20,11 +20,14 @@ body{
#app>header#header{ #app>header#header{
// background-color: $front; // background-color: $front;
pointer-events: none;
.row{ .row{
display: flex; display: flex;
flex-direction: row; flex-direction: row;
pointer-events: none;
>*{ >*{
margin-right: 1em; margin-right: 1em;
pointer-events: all;
} }
// &.top{ // &.top{
// } // }
@ -59,12 +62,15 @@ body{
} }
#map-nav{ #map-nav{
pointer-events: none;
ul{ ul{
display: flex; display: flex;
flex-flow: row; flex-flow: row;
gap: 1em; gap: 1em;
pointer-events: none;
li{ li{
list-style: none; list-style: none;
pointer-events: all;
a{ a{
@include btn(); @include btn();
} }

View File

@ -171,6 +171,11 @@ export default {
} }
// console.log(`this.mapPopupData type: ${this.mapPopupData.type}, id: ${this.mapPopupData.id}`); // console.log(`this.mapPopupData type: ${this.mapPopupData.type}, id: ${this.mapPopupData.id}`);
} }
if (this.mapPopupData) {
document.body.style.cursor = "pointer";
} else {
document.body.style.cursor = "auto";
}
}, },
onClick (e) { onClick (e) {
console.log('onClick', this, e); console.log('onClick', this, e);