summaryrefslogtreecommitdiff
path: root/layouts/_partials/posts/action-menu/comment-button.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-27 14:18:34 +0800
committerEltrac <hi@guhub.cn>2025-09-27 14:18:34 +0800
commit0beb9bb5ff432fd1cd49d93304de9481c771da52 (patch)
tree63709dcddd26a7e304c7f8a387adc808caddb9a0 /layouts/_partials/posts/action-menu/comment-button.html
parent70de9d75739c297538cc1289d15bc6fb0939324f (diff)
refactor: separate action menu into modules
Former-commit-id: a6b8fe66a76f71757c71669db6337a007b2eab5d
Diffstat (limited to 'layouts/_partials/posts/action-menu/comment-button.html')
-rw-r--r--layouts/_partials/posts/action-menu/comment-button.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/_partials/posts/action-menu/comment-button.html b/layouts/_partials/posts/action-menu/comment-button.html
new file mode 100644
index 00000000..bc079a4f
--- /dev/null
+++ b/layouts/_partials/posts/action-menu/comment-button.html
@@ -0,0 +1,7 @@
+<button class="dark:invert flex items-center justify-center gap-1.5 min-w-12 h-12 px-2 border-none bg-transparent text-gray-600 cursor-pointer relative transition-all duration-200 hover:bg-black/5 hover:rounded-lg group"
+ id="comments-toggle" title="{{ T "actionMenu.comment" }}" data-tooltip>
+ <img src="/img/comments.svg" width="20" height="20"
+ alt="{{ T "actionMenu.comment" }}"
+ class="brightness-40 flex-shrink-0 dark:brightness-70 dark:contrast-120" />
+ <span class="text-xs font-bold text-gray-600 min-w-4 text-center bg-white/90 rounded-xl px-1.5 py-0.5 shadow-sm dark:text-gray-400 dark:bg-black/70" id="comment-count">...</span>
+</button>