Fix images tags display #38
This commit is contained in:
parent
ea299ef583
commit
75a4dba4ec
2 changed files with 8 additions and 4 deletions
|
|
@ -41,8 +41,10 @@
|
||||||
height: 1.5rem;
|
height: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.image .tag {
|
.image .tags {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: var(--space-12);
|
top: var(--space-12);
|
||||||
left: var(--space-12);
|
left: var(--space-12);
|
||||||
|
right: var(--space-12);
|
||||||
|
gap: var(--space-8);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,11 @@
|
||||||
:class="{ 'has-description': image.description.length > 0 }"
|
:class="{ 'has-description': image.description.length > 0 }"
|
||||||
@click="imageDetails = image"
|
@click="imageDetails = image"
|
||||||
>
|
>
|
||||||
<span v-for="tag in image.tags" class="tag | btn btn--sm">{{
|
<p class="tags | flex">
|
||||||
tag
|
<span v-for="tag in image.tags" class="tag | btn btn--sm">{{
|
||||||
}}</span>
|
tag
|
||||||
|
}}</span>
|
||||||
|
</p>
|
||||||
<img :src="image.url" alt="" />
|
<img :src="image.url" alt="" />
|
||||||
</figure>
|
</figure>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue