未读角标增加

This commit is contained in:
zhangzheng
2026-03-12 12:46:22 +08:00
parent cccd5f8cec
commit 873ce3d940
3 changed files with 29 additions and 7 deletions

View File

@@ -492,8 +492,10 @@
<!-- 右侧聊天按钮 -->
<div class="absolute right-6 flex items-center gap-3">
<button class="control-btn w-10 h-10 rounded-full glass flex items-center justify-center text-gray-300 hover:text-white hover:bg-white/10 transition-colors" onclick="toggleSidebar()">
<button class="control-btn w-10 h-10 rounded-full glass flex items-center justify-center text-gray-300 hover:text-white hover:bg-white/10 transition-colors relative" onclick="toggleSidebar()">
<i class="fas fa-comment-alt"></i>
<!-- 未读消息计数角标 -->
<span id="unreadBadge" class="absolute -top-1 -right-1 w-5 h-5 bg-red-500 rounded-full flex items-center justify-center text-xs font-bold text-white hidden">0</span>
</button>
</div>