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 同策略:窄屏默认折叠