From 7e4fd7e54a4a1d1ce9e136ccd40650fac9ebaae7 Mon Sep 17 00:00:00 2001 From: shufeng2012 <277665039@qq.com> Date: Sun, 2 Aug 2026 09:04:53 +0800 Subject: [PATCH] Add search input border. --- static/public/dnfs.html | 4 ++++ static/public/js/dnfs.js | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/static/public/dnfs.html b/static/public/dnfs.html index 07484d6..085acca 100644 --- a/static/public/dnfs.html +++ b/static/public/dnfs.html @@ -10,6 +10,10 @@
+
diff --git a/static/public/js/dnfs.js b/static/public/js/dnfs.js index daced9a..40c2b06 100644 --- a/static/public/js/dnfs.js +++ b/static/public/js/dnfs.js @@ -976,6 +976,14 @@ function renderUserPanel() { userpanel.appendChild(fold); if (!userpanel_expand || !current_user.login) return; + let back_to_index = document.createElement("div"); + back_to_index.className = "tag"; + back_to_index.textContent = "回到主页"; + back_to_index.addEventListener("click", () => { + window.location.href = "/"; + }) + userpanel.appendChild(back_to_index); + let name_tag = document.createElement("div"); name_tag.className = "tag no-hover"; name_tag.textContent = current_user.user;