From bc3cf49280d83cc380ed36e0b998fcb09e951339 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Fri, 24 Feb 2023 17:21:09 +0800 Subject: [PATCH] feat: click_zan cnt block title --- web/app/controllers/blogs.php | 2 +- web/app/models/ClickZans.php | 2 +- web/css/uoj-bs5.css | 1 + web/js/uoj.js | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/web/app/controllers/blogs.php b/web/app/controllers/blogs.php index 744dcc7..f40bb23 100644 --- a/web/app/controllers/blogs.php +++ b/web/app/controllers/blogs.php @@ -25,7 +25,7 @@ function echoBlog($info) { echo '
', UOJUser::getLink($poster), '
'; echo '
'; echo '', ' ', $blog->getReplyCnt(), ' '; - echo '', ' ', $blog->getDisplayZanCnt(), ' '; + echo '', ' ', $blog->getDisplayZanCnt(), ' '; echo '
'; echo ''; echo ''; diff --git a/web/app/models/ClickZans.php b/web/app/models/ClickZans.php index a7da14a..f21ec98 100644 --- a/web/app/models/ClickZans.php +++ b/web/app/models/ClickZans.php @@ -121,6 +121,6 @@ class ClickZans { if ($cnt < 0) $display_cnt = '-?'; - return '[' . $display_cnt . ']'; + return '[' . $display_cnt . ']'; } } diff --git a/web/css/uoj-bs5.css b/web/css/uoj-bs5.css index 2a5b3a4..cf2a3f4 100644 --- a/web/css/uoj-bs5.css +++ b/web/css/uoj-bs5.css @@ -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 { diff --git a/web/js/uoj.js b/web/js/uoj.js index 74f8ebe..191e091 100644 --- a/web/js/uoj.js +++ b/web/js/uoj.js @@ -334,7 +334,7 @@ $.fn.click_zan_block = function() { $(this) .append(up_node) .append(down_node) - .append($('[' + display_cnt + ']')); + .append($('[' + display_cnt + ']')); }); }