From 0a01351db2fa0377ab298eacfceb9975e5c04aaa Mon Sep 17 00:00:00 2001 From: nanhaoluo <3075912108@qq.com> Date: Thu, 22 Jan 2026 13:53:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=81=A2=E5=A4=8D=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=A1=B5=E7=9B=AE=E5=BD=95=E6=A1=86=E6=94=B6=E8=B5=B7/?= =?UTF-8?q?=E5=B1=95=E5=BC=80=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 保留目录框折叠功能 - 默认状态为展开(不添加 folded 类) - 用户可手动收起或展开 --- settings.php | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/settings.php b/settings.php index 23c90cb..a16867f 100644 --- a/settings.php +++ b/settings.php @@ -5635,6 +5635,8 @@ window.pjaxLoaded = function(){
+ +
@@ -5703,7 +5705,7 @@ window.pjaxLoaded = function(){ box-shadow: 0 1px 1px rgba(0,0,0,.04); - padding: 6px 20px; + padding: 6px 30px 6px 20px; overflow-y: auto; @@ -5745,6 +5747,62 @@ window.pjaxLoaded = function(){ } + #headindex_toggler{ + + position: absolute; + + right: 5px; + + top: 5px; + + color: #555; + + background: #f7f7f7; + + box-shadow: 0 1px 0 #ccc; + + outline: none !important; + + border: 1px solid #ccc; + + border-radius: 2px; + + cursor: pointer; + + width: 40px; + + height: 25px; + + font-size: 12px; + + } + + #headindex_box.folded { + + right: -185px; + + } + + #headindex_box.folded #headindex_toggler{ + + position: fixed; + + right: 15px; + + top: 55px; + + font-size: 0px; + + } + + #headindex_box.folded #headindex_toggler:before{ + + content: ''; + + font-size: 12px; + + } + @media screen and (max-width:960px){ #headindex_box {