Notes: Update layot

This commit is contained in:
KosFurler 2022-01-25 23:52:23 +03:00
parent 43ebb2c8ad
commit 287b2a29aa
2 changed files with 15 additions and 11 deletions

View file

@ -51,16 +51,19 @@
</div>
</article>
<div class="note_footer">
<div class="comments_count">Комментарии ({$note->getCommentsCount()})
<div class="note_footer" style="margin: 10px 10px 0;">
<div class="comments_count">
{if sizeof($comments) > 0}
Комментарии ({$note->getCommentsCount()})
{else}
Нет комментариев
{/if}
<span n:if="isset($thisUser) && $thisUser->getId() === $note->getOwner()->getId()">&nbsp;|&nbsp;
<a id="_noteDelete" href="/note{$note->getOwner()->getId()}_{$note->getId()}/delete">удалить</a>
</span>
</div>
</div>
<div style="width: 100%; min-height: 100px;">
<div style="float: left; min-height: 100px; width: 70%;">
<div style="margin: 6px 10px 10px;border-top: 1px solid #ddd;">
{include "../components/comments.xml",
comments => $comments,
count => $cCount,
@ -68,5 +71,4 @@
model => "notes",
parent => $note}
</div>
</div>
{/block}

View file

@ -1820,12 +1820,14 @@ body.scrolled .toTop:hover {
margin: 0;
padding: 0 0 1px 0;
}
.note_footer {
border-top: 1px solid #ddd;
clear: both;
margin-top: 10px;
padding: 0px 2px 0px 6px;
}
.comments_count {
padding: 5px 0px 0px 0px;
}