feat: added thumbnail middleware (idk if it works tho)

This commit is contained in:
limited_dev 2023-02-15 14:01:39 +01:00
parent b25949a8f3
commit 6a1287495d
5 changed files with 33 additions and 4 deletions

View file

@ -11,6 +11,7 @@
display: block;
margin-left: auto;
margin-right: auto;
max-width: 500px;
width: 500px;
max-height: 500px;
max-width: 90vw !important;
}

View file

@ -22,7 +22,7 @@
<div class="threadImage">
@if (image != null)
{
<img src="@($"{image.ImageLocation}")" alt="No Image found" />
<img src="@($"{image.ImageLocation}?size=258x258")" alt="No Image found" />
}
</div>
<div class="threadTextContainer">

View file

@ -34,7 +34,7 @@
<div class="threadImage">
@if (@post.Image != null)
{
<img src="@($"{@post.Image.ImageLocation}")" alt="No Image found" />
<img src="@($"{@post.Image.ImageLocation}?size=258x258")" alt="No Image found" />
}
else
{