Text white when item is active in asset manager

This commit is contained in:
2024-11-17 17:00:07 +01:00
parent 84939a7d32
commit 2c96caee4f
4 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@
<div class="h-7 w-16 max-w-16 flex justify-center">
<img class="h-7" :src="`${config.server_endpoint}/assets/tiles/${tile.id}.png`" alt="Tile" />
</div>
<span>{{ tile.name }}</span>
<span :class="{ 'text-white': assetManagerStore.selectedTile?.id === tile.id }">{{ tile.name }}</span>
</div>
<div class="absolute left-0 bottom-0 w-full h-px bg-gray-500"></div>
</a>