Photos: (kinda) correctly display multiple pics in posts

This commit is contained in:
veselcraft 2022-04-26 12:07:41 +03:00
parent 40338a67fc
commit 730de65b80
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E
2 changed files with 18 additions and 2 deletions

View file

@ -7,7 +7,7 @@
<table border="0" style="font-size: 11px;" n:class="post, !$compact ? post-divider, $post->isExplicit() ? post-nsfw">
<tbody>
<tr>
<td width="54" valign="top">
<td width="{ifset $compact}27{else}54{/ifset}" style="{ifset $compact}display: block;{/ifset}" valign="top">
<a href="{$author->getURL()}">
<img src="{$author->getAvatarURL('miniscule')}" width="{ifset $compact}25{else}50{/ifset}" {ifset $compact}class="cCompactAvatars"{/ifset} />
<span n:if="!$post->isPostedOnBehalfOfGroup() && !$compact && $author->isOnline()" class="post-online">{_online}</span>

View file

@ -630,6 +630,22 @@ h4 {
.post-content .attachments_b {
margin-top: 8px;
display: grid;
grid-gap: 2px;
height: 100%;
max-height: 300px;
overflow: hidden;
}
.post-content .attachments_b > div {
min-width: 0;
min-height: 0;
}
.post-content .attachments_b > div a img {
height: 100%;
object-fit: cover;
width: 100%;
}
.attachment .post {