style(dnfs): 用户信息面板移到左边中间,与右侧 minimap 镜像对称

This commit is contained in:
qing committed 2026-07-30 09:44:15 +08:00
1 parent a58a0f97e3
commit 5c33dbe027
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -365,11 +365,12 @@ input[type="button"]:disabled {
font-weight: 600;
}
/* ===== User Panel (dnfs 左上角用户信息,镜像 minimap 样式) ===== */
/* ===== User Panel (dnfs 左边中间用户信息,镜像 minimap 样式) ===== */
.userpanel {
position: fixed;
left: 1rem;
top: 1rem;
top: 50%;
transform: translateY(-50%);
z-index: 100;
display: flex;
flex-direction: column;
+1 -1
View File
@@ -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 同策略:窄屏默认折叠