fix zone name display

This commit is contained in:
2025-12-21 01:13:32 +01:00
parent af8a6cab1d
commit 92fc068fda
+25 -4
View File
@@ -3,6 +3,7 @@
class="node" class="node"
:class="{active: gatheringNode.isActive(eorzeaTime)}" :class="{active: gatheringNode.isActive(eorzeaTime)}"
> >
<div class="location-info">
<div <div
v-if="!gatheringNode.isActive(eorzeaTime)" v-if="!gatheringNode.isActive(eorzeaTime)"
> >
@@ -43,13 +44,14 @@
> >
</span> </span>
<div class="info"> <div class="info">
<span>{{ zones[gatheringNode.nearestAetheryte.position.zone]?.name?.en }}</span> <span class="zone-name">{{ zones[gatheringNode.location.zone]?.name?.en }}</span>
<span>{{ gatheringNode.nearestAetheryte.name.en }}</span> <span class="aetheryte-name">{{ gatheringNode.nearestAetheryte.name.en }}</span>
<span>{{ <span class="coords">{{
gatheringNode.nearestAetheryte.position.x.toFixed(1) gatheringNode.nearestAetheryte.position.x.toFixed(1)
}}, {{ gatheringNode.nearestAetheryte.position.y.toFixed(1) }}</span> }}, {{ gatheringNode.nearestAetheryte.position.y.toFixed(1) }}</span>
</div> </div>
</div> </div>
</div>
<div class="items"> <div class="items">
<span <span
v-for="item in gatheringNode.items" v-for="item in gatheringNode.items"
@@ -139,6 +141,14 @@ export default defineComponent({
border-radius: 0.25rem; border-radius: 0.25rem;
content-visibility: auto; content-visibility: auto;
.location-info {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 1rem;
align-items: center;
}
&.active { &.active {
animation: infinite pulsing 6s; animation: infinite pulsing 6s;
} }
@@ -172,7 +182,7 @@ export default defineComponent({
.aetheryte { .aetheryte {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: flex-start;
align-items: center; align-items: center;
gap: 0.25rem; gap: 0.25rem;
font-size: 1.5rem; font-size: 1.5rem;
@@ -196,6 +206,17 @@ export default defineComponent({
justify-content: center; justify-content: center;
align-items: start; align-items: start;
gap: 0.1rem; gap: 0.1rem;
line-height: 1;
.zone-name {
font-size: 0.75rem;
}
.aetheryte-name {
font-size: 1.1rem;
}
.coords {
padding-top: 0.15rem;
}
} }
} }