Added primitive thumbnailer.
This commit is contained in:
@@ -27,7 +27,14 @@
|
||||
class="title-link"
|
||||
>
|
||||
<img
|
||||
v-if="post.hasThumbnail"
|
||||
class="thumbnail"
|
||||
:src="`/media/thumbnails/${post.id}.jpeg`"
|
||||
>
|
||||
|
||||
<img
|
||||
v-else
|
||||
class="thumbnail missing"
|
||||
:src="blockedIcon"
|
||||
>
|
||||
</a>
|
||||
@@ -172,11 +179,16 @@ async function submitVote(value) {
|
||||
width: 7rem;
|
||||
height: 4rem;
|
||||
box-sizing: border-box;
|
||||
padding: 1rem;
|
||||
border-radius: .25rem;
|
||||
margin: .5rem;
|
||||
background: var(--grey-light-10);
|
||||
opacity: .25;
|
||||
object-fit: cover;
|
||||
|
||||
&.missing {
|
||||
padding: 1rem;
|
||||
background: var(--grey-light-10);
|
||||
opacity: .25;
|
||||
object-fit: contain;
|
||||
}
|
||||
}
|
||||
|
||||
.votes {
|
||||
|
||||
Reference in New Issue
Block a user