better concernment and entite content display
This commit is contained in:
@@ -72,18 +72,18 @@ export default {
|
||||
this.dom.setAttribute("pos", `${v}-${h}`);
|
||||
switch (h) {
|
||||
case "right":
|
||||
this.dom.style.left = `${e.clientX}px`;
|
||||
this.dom.style.left = `${e.clientX+2}px`;
|
||||
break;
|
||||
case "left":
|
||||
this.dom.style.left = `${e.clientX - this.dom.clientWidth}px`;
|
||||
this.dom.style.left = `${e.clientX - this.dom.clientWidth-2}px`;
|
||||
break;
|
||||
}
|
||||
switch (v) {
|
||||
case "top":
|
||||
this.dom.style.top = `${e.clientY - this.dom.clientHeight}px`;
|
||||
this.dom.style.top = `${e.clientY - this.dom.clientHeight-2}px`;
|
||||
break;
|
||||
case "bottom":
|
||||
this.dom.style.top = `${e.clientY}px`;
|
||||
this.dom.style.top = `${e.clientY+2}px`;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -100,6 +100,10 @@ export default {
|
||||
<div class="popup-content-wrapper">
|
||||
<section v-if="infos.type === 'concernement'" class="concernement-map-popup">
|
||||
<h1>{{ concernement.title }}</h1>
|
||||
<ul class="icons">
|
||||
<li v-if="concernement.has_agissantes" ><span class="icon action">Action</span></li>
|
||||
<li v-if="concernement.has_puissancedagir" ><span class="icon puissanceagir">Puissance d'agir</span></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section v-if="infos.type === 'entite'" class="entite-map-popup">
|
||||
<h1>{{ entite.entite.title }}</h1>
|
||||
|
||||
Reference in New Issue
Block a user