Fix images tags display #38

This commit is contained in:
Timothée Goguely 2024-12-04 16:12:27 +01:00
parent ea299ef583
commit 75a4dba4ec
2 changed files with 8 additions and 4 deletions

View file

@ -41,8 +41,10 @@
height: 1.5rem;
}
.image .tag {
.image .tags {
position: absolute;
top: var(--space-12);
left: var(--space-12);
right: var(--space-12);
gap: var(--space-8);
}

View file

@ -24,9 +24,11 @@
:class="{ 'has-description': image.description.length > 0 }"
@click="imageDetails = image"
>
<span v-for="tag in image.tags" class="tag | btn btn--sm">{{
tag
}}</span>
<p class="tags | flex">
<span v-for="tag in image.tags" class="tag | btn btn--sm">{{
tag
}}</span>
</p>
<img :src="image.url" alt="" />
</figure>
</template>