Display description icon only if image has description

This commit is contained in:
Timothée Goguely 2024-10-09 18:01:28 +02:00
parent 647aeb2371
commit 82601600a9
2 changed files with 2 additions and 1 deletions

View file

@ -21,6 +21,7 @@
)
"
class="image"
:class="{ 'has-description': image.description.length > 0 }"
@click="imageDetails = image"
>
<span v-for="tag in image.tags" class="tag | btn btn--sm">{{

View file

@ -221,7 +221,7 @@ function setStepStatus(stepName) {
top: var(--space-12);
left: var(--space-12);
}
.image::after {
.image.has-description::after {
content: "";
display: inline-block;
width: 1rem;