Fixed photo banner on tags.

This commit is contained in:
ThePendulum 2020-02-13 15:37:25 +01:00
parent f33981ef34
commit 5b19fdf7f2
1 changed files with 7 additions and 7 deletions

View File

@ -8,6 +8,7 @@
:title="tag.poster.comment"
target="_blank"
rel="noopener noreferrer"
class="photo-link"
>
<img
:src="`/img/${tag.poster.thumbnail}`"
@ -26,6 +27,7 @@
:href="`/img/${photo.path}`"
target="_blank"
rel="noopener noreferrer"
class="photo-link"
>
<img
:src="`/img/${photo.thumbnail}`"
@ -60,18 +62,16 @@ export default {
&.compact {
display: none;
padding: 0 1rem 1rem 1rem;
padding: 0 1rem 0 1rem;
overflow-x: auto;
.photos-inner {
max-width: 100%;
display: inline-flex;
flex-shrink: 0;
}
.poster,
.photo {
width: 100%;
margin: 0 1rem 0 0;
.photo-link {
display: inline-block;
margin: 0 .5rem 0 0;
}
}
}