css: use max-width for better image preview
This commit is contained in:
parent
56e0e02a7b
commit
1f4e5a77ca
2 changed files with 8 additions and 3 deletions
|
|
@ -355,9 +355,9 @@ let view_post ?is_thread_preview post_id =
|
||||||
(*TODO thumbnails *)
|
(*TODO thumbnails *)
|
||||||
Format.sprintf
|
Format.sprintf
|
||||||
{|
|
{|
|
||||||
<div class="postImage">
|
<div class="postImageContainer">
|
||||||
<a title="%s" href="/post_pic/%s">
|
<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>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|}
|
|}
|
||||||
|
|
|
||||||
|
|
@ -44,11 +44,16 @@ blockquote.blockquote {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.postImage {
|
.postImageContainer {
|
||||||
float: left;
|
float: left;
|
||||||
padding: 5px 5px 5px 5px;
|
padding: 5px 5px 5px 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.postImage {
|
||||||
|
max-width: 250px;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.quote {
|
.quote {
|
||||||
color: green;
|
color: green;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue