Make comment box sticky

This commit is contained in:
celestora 2023-05-26 18:13:47 +03:00
parent 95a62f56e0
commit 43541b9136
2 changed files with 9 additions and 1 deletions

View file

@ -1,6 +1,6 @@
<h4 n:if="$showTitle ?? true">{_comments} ({$count})</h4>
<div n:ifset="$thisUser">
<div n:ifset="$thisUser" id="standaloneCommentBox">
{var $commentsURL = "/al_comments/create/$model/" . $parent->getId()}
{var $club = $parent instanceof \openvk\Web\Models\Entities\Post && $parent->getTargetWall() < 0 ? (new openvk\Web\Models\Repositories\Clubs)->get(abs($parent->getTargetWall())) : $club}
{if !$readOnly}

View file

@ -2300,3 +2300,11 @@ a.poll-retract-vote {
background-image: url(/assets/packages/static/openvk/img/videoico.png);
display: none;
}
#standaloneCommentBox {
position: sticky;
top: 0;
background-color: #fff;
border-bottom: 1px dotted #8b8b8b;
z-index: 10;
}