From 40175eddb5329f4f51c4d8e4ec687d002cc9933f Mon Sep 17 00:00:00 2001 From: qing <1776177662@qq.com> Date: Thu, 30 Jul 2026 09:52:08 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"style(dnfs):=20=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E9=9D=A2=E6=9D=BF=E7=A7=BB=E5=88=B0=E5=B7=A6?= =?UTF-8?q?=E8=BE=B9=E4=B8=AD=E9=97=B4=EF=BC=8C=E4=B8=8E=E5=8F=B3=E4=BE=A7?= =?UTF-8?q?=20minimap=20=E9=95=9C=E5=83=8F=E5=AF=B9=E7=A7=B0"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 5c33dbe0276368a1a2e3a86d49c55a833644e42a. --- static/public/css/theme.css | 5 ++--- static/public/js/dnfs.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/static/public/css/theme.css b/static/public/css/theme.css index 5a30d4f..be578fa 100644 --- a/static/public/css/theme.css +++ b/static/public/css/theme.css @@ -365,12 +365,11 @@ input[type="button"]:disabled { font-weight: 600; } -/* ===== User Panel (dnfs 左边中间用户信息,镜像 minimap 样式) ===== */ +/* ===== User Panel (dnfs 左上角用户信息,镜像 minimap 样式) ===== */ .userpanel { position: fixed; left: 1rem; - top: 50%; - transform: translateY(-50%); + top: 1rem; z-index: 100; display: flex; flex-direction: column; diff --git a/static/public/js/dnfs.js b/static/public/js/dnfs.js index 25a2207..1282fe6 100644 --- a/static/public/js/dnfs.js +++ b/static/public/js/dnfs.js @@ -656,7 +656,7 @@ function loadMap(children_json) { } } -/* by qing — 用户信息面板:左边中间,默认折叠;展示用户名 / 角色 / 退出登录。 +/* by qing — 用户信息面板:左上角,默认折叠;展示用户名 / 角色 / 退出登录。 * 身份来自 dnfs /whoami(HttpOnly Cookie 模式下 JS 无法读 Token,由后端解 payload 返回) */ var userpanel = document.getElementById("userpanel"); var userpanel_expand = window.innerWidth >= PANEL_EXPAND_MIN_WIDTH; // 与 minimap 同策略:窄屏默认折叠