feat(dnfs): 折叠态用户面板改为圆形头像按钮,点击展开

This commit is contained in:
qing committed 2026-08-12 20:51:44 +08:00
1 parent f1d6e9ceb4
commit 8673515d31
2 files changed
+26 -3

No files matched your search

+3 -2
View File
@@ -1299,11 +1299,12 @@ function renderUserPanel() {
if (current_user == null) return;
userpanel.replaceChildren();
let fold = document.createElement("div");
fold.className = "tag fold-btn";
if (userpanel_expand) {
fold.className = "tag fold-btn";
fold.textContent = "v 折叠";
} else {
fold.textContent = "> 展开";
fold.className = "user-avatar-fold";
fold.textContent = current_user.login ? (current_user.user || "?").trim().charAt(0).toUpperCase() : "?";
}
fold.addEventListener("click", () => {
userpanel_expand = !userpanel_expand;