Added primitive thumbnailer.

This commit is contained in:
2023-06-26 00:58:44 +02:00
parent e5b102ce07
commit 83fcdba93a
9 changed files with 2532 additions and 4 deletions

View File

@@ -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 {