stop post linked image from causing page jumps

master
Aevann 2023-05-02 19:52:37 +03:00
parent aabeca66f0
commit bbcef78a5c
2 changed files with 7 additions and 1 deletions

View File

@ -7350,3 +7350,9 @@ button, .btn {
object-fit: contain;
}
.post-linked-img {
height: 500px;
width: 100%;
object-fit: contain;
object-position: left;
}

View File

@ -129,7 +129,7 @@
<div class="row no-gutters mb-4">
<div class="col">
<a {% if not v or v.newtabexternal %}target="_blank"{% endif %} rel="nofollow noopener" href="{{p.realurl(v)}}">
<img loading="lazy" data-nonce="{{g.nonce}}" data-onclick="expandImage()" src="{{p.realurl(v)}}" class="img-fluid" style="max-height:500px" alt="Unable to load image">
<img loading="lazy" data-nonce="{{g.nonce}}" data-onclick="expandImage()" src="{{p.realurl(v)}}" class="post-linked-img" alt="Unable to load image">
</a>
</div>
</div>