Correctly display long names when displaying only creator without comment

This commit is contained in:
Maxim Leshchenko 2021-11-08 11:09:10 +02:00
parent 848683b1d6
commit af92662ef9
2 changed files with 4 additions and 3 deletions

View file

@ -116,7 +116,8 @@
<img class="ava" src="{$author->getAvatarUrl()}" />
</a>
</div>
<div class="info info-without-subtitle-centered" n:if="empty($club->getOwnerComment())">
{* Это наверное костыль, ну да ладно *}
<div class="info{if strlen($author->getCanonicalName()) < 22} info-centered{/if}" n:if="empty($club->getOwnerComment())">
<a href="{$author->getURL()}" class="title">{$author->getCanonicalName()}</a>
</div>
<div class="info" n:if="!empty($club->getOwnerComment())">
@ -132,7 +133,7 @@
<div>
<div class="content_subtitle">
{tr("administrators", $club->getManagersCount(true))}
<div style="float: right;">
<div style="float:right;">
<a href="/club{$club->getId()}/followers?onlyAdmins=1">{_"all_title"}</a>
</div>
</div>

View file

@ -1483,7 +1483,7 @@ body.scrolled .toTop:hover {
width: 134px;
}
.avatar-list-item .info-without-subtitle-centered {
.avatar-list-item .info-centered {
padding-top: 8px;
}