Fixed thumbnail scaling

This commit is contained in:
WardPearce
2024-05-13 14:27:44 +12:00
parent 78f5fc47fd
commit 3fe156e87e
+5 -6
View File
@@ -238,12 +238,7 @@
</video>
</div>
{:else}
<img
class="responsive"
style="max-width: 100%;min-height: 160px;"
src={img.src}
alt="Thumbnail for video"
/>
<img class="responsive" src={img.src} alt="Thumbnail for video" />
{/if}
{:else}
<p>{$_('thumbnail.failedToLoadImage')}</p>
@@ -339,6 +334,10 @@
max-height: 160px;
}
.thumbnail img {
object-fit: contain;
}
@media screen and (max-width: 650px) {
.thumbnail {
max-height: 100%;