mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Photos: (kinda) correctly display multiple pics in posts
This commit is contained in:
parent
40338a67fc
commit
730de65b80
2 changed files with 18 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue