From a67f190634a828c85cff049f221f375856519a08 Mon Sep 17 00:00:00 2001 From: qing <1776177662@qq.com> Date: Mon, 27 Jul 2026 15:41:14 +0800 Subject: [PATCH] =?UTF-8?q?=E2=80=9C=E8=BF=94=E5=9B=9E=E4=B8=8A=E4=B8=80?= =?UTF-8?q?=E5=B1=82=E2=80=9D=E6=8C=89=E9=92=AE=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/public/css/theme.css | 16 ++++++++++++++++ static/public/js/dnfs.js | 1 + 2 files changed, 17 insertions(+) diff --git a/static/public/css/theme.css b/static/public/css/theme.css index e17cf0d..f84384f 100644 --- a/static/public/css/theme.css +++ b/static/public/css/theme.css @@ -279,6 +279,22 @@ button[type="button"], input[type="button"] { background: var(--accent-soft); co border-color: var(--accent); margin-bottom: 0.25rem; } +.minimap .tag.fold-btn { + color: var(--fg-secondary); + background: transparent; + border: 1px solid var(--border); + font-weight: 600; + margin-bottom: 0.3rem; + text-align: center; + max-width: none; + cursor: pointer; + transition: color 0.15s, background 0.15s, border-color 0.15s; +} +.minimap .tag.fold-btn:hover { + color: var(--accent-dark); + background: var(--accent-soft); + border-color: var(--accent); +} /* ===== Node Form (dnfs) ===== */ .node-form { margin-top: 1rem; } diff --git a/static/public/js/dnfs.js b/static/public/js/dnfs.js index 60c1c01..87a38e1 100644 --- a/static/public/js/dnfs.js +++ b/static/public/js/dnfs.js @@ -262,6 +262,7 @@ function loadMap(children_json) { let need_return = false; minimap.replaceChildren(); var fold_div = document.createElement("div"); + fold_div.className = "tag fold-btn"; if (is_expand == true) { fold_div.textContent = "v 折叠"; minimap.appendChild(fold_div);