better concernment and entite content display

This commit is contained in:
2023-05-24 22:16:35 +02:00
parent 453e07ec31
commit b360987c76
5 changed files with 90 additions and 24 deletions

View File

@@ -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>