mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +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">
|
<table border="0" style="font-size: 11px;" n:class="post, !$compact ? post-divider, $post->isExplicit() ? post-nsfw">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<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()}">
|
<a href="{$author->getURL()}">
|
||||||
<img src="{$author->getAvatarURL('miniscule')}" width="{ifset $compact}25{else}50{/ifset}" {ifset $compact}class="cCompactAvatars"{/ifset} />
|
<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>
|
<span n:if="!$post->isPostedOnBehalfOfGroup() && !$compact && $author->isOnline()" class="post-online">{_online}</span>
|
||||||
|
|
|
@ -629,7 +629,23 @@ h4 {
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-content .attachments_b {
|
.post-content .attachments_b {
|
||||||
margin-top: 8px;
|
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 {
|
.attachment .post {
|
||||||
|
|
Loading…
Reference in a new issue