feat: click_zan cnt block title
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-02-24 17:21:09 +08:00
parent d2e2760be3
commit bc3cf49280
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
4 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,7 @@ function echoBlog($info) {
echo '<div>', UOJUser::getLink($poster), '</div>';
echo '<div class="hstack gap-2 flex-wrap small text-muted">';
echo '<span>', '<i class="bi bi-chat-dots"></i> ', $blog->getReplyCnt(), ' </span>';
echo '<span>', '<i class="bi bi-hand-thumbs-up"></i> ', $blog->getDisplayZanCnt(), ' </span>';
echo '<span title="', $blog->info['zan'], '">', '<i class="bi bi-hand-thumbs-up"></i> ', $blog->getDisplayZanCnt(), ' </span>';
echo '</div>';
echo '</div>';
echo '</div>';

View File

@ -121,6 +121,6 @@ class ClickZans {
if ($cnt < 0) $display_cnt = '-?';
return '<span class="' . $cls . '"><span class="uoj-click-zan-cnt">[<strong>' . $display_cnt . '</strong>]</span></span>';
return '<span class="' . $cls . '"><span class="uoj-click-zan-cnt" title="' . $cnt . '">[<strong>' . $display_cnt . '</strong>]</span></span>';
}
}

View File

@ -114,6 +114,7 @@ h6,
.uoj-click-zan-cnt {
margin-left: 5px;
margin-right: 5px;
cursor: help;
}
.uoj-click-zan-block-cur-up .uoj-click-zan-up {

View File

@ -334,7 +334,7 @@ $.fn.click_zan_block = function() {
$(this)
.append(up_node)
.append(down_node)
.append($('<span class="uoj-click-zan-cnt">[<strong>' + display_cnt + '</strong>]</span>'));
.append($('<span class="uoj-click-zan-cnt" title="' + cnt + '">[<strong>' + display_cnt + '</strong>]</span>'));
});
}