mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Make comment box sticky
This commit is contained in:
parent
95a62f56e0
commit
43541b9136
2 changed files with 9 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
<h4 n:if="$showTitle ?? true">{_comments} ({$count})</h4>
|
<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 $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}
|
{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}
|
{if !$readOnly}
|
||||||
|
|
|
@ -2300,3 +2300,11 @@ a.poll-retract-vote {
|
||||||
background-image: url(/assets/packages/static/openvk/img/videoico.png);
|
background-image: url(/assets/packages/static/openvk/img/videoico.png);
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#standaloneCommentBox {
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
background-color: #fff;
|
||||||
|
border-bottom: 1px dotted #8b8b8b;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
Loading…
Reference in a new issue