css: use max-width for better image preview

This commit is contained in:
Swrup 2022-01-18 01:41:10 +01:00
parent 56e0e02a7b
commit 1f4e5a77ca
2 changed files with 8 additions and 3 deletions

View file

@ -355,9 +355,9 @@ let view_post ?is_thread_preview post_id =
(*TODO thumbnails *)
Format.sprintf
{|
<div class="postImage">
<div class="postImageContainer">
<a title="%s" href="/post_pic/%s">
<img src="/post_pic/%s" style="width:200px;height:200px;" loading="lazy">
<img class= "postImage" src="/post_pic/%s" loading="lazy">
</a>
</div>
|}