Wall: New pin icon instead of X icon on Pin/Unpin action

This commit is contained in:
veselcraft 2021-10-09 11:22:08 +03:00
parent d52125ac7e
commit 313225e634
3 changed files with 17 additions and 2 deletions

View file

@ -33,9 +33,9 @@
{if $post->canBePinnedBy($thisUser) && !($forceNoPinLink ?? false) && !isset($compact)}
{if $post->isPinned()}
<a class="delete" href="/wall{$post->getPrettyId()}/pin?act=unpin&hash={rawurlencode($csrfToken)}"></a>
<a class="pin" href="/wall{$post->getPrettyId()}/pin?act=unpin&hash={rawurlencode($csrfToken)}"></a>
{else}
<a class="delete" href="/wall{$post->getPrettyId()}/pin?act=pin&hash={rawurlencode($csrfToken)}"></a>
<a class="pin" href="/wall{$post->getPrettyId()}/pin?act=pin&hash={rawurlencode($csrfToken)}"></a>
{/if}
{/if}
</div>

View file

@ -62,3 +62,18 @@
.post-author .delete:hover {
opacity: 0.4;
}
.post-author .pin {
float: right;
display: inline-block;
height: 16px;
width: 16px;
overflow: auto;
background: url("/assets/packages/static/openvk/img/pin.png") no-repeat 0px 0px;
opacity: 0.1;
transition-duration: 0.3s;
}
.post-author .pin:hover {
opacity: 0.4;
}

BIN
Web/static/img/pin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 813 B