diff --git a/supply.html b/supply.html index 58ba09f..d041865 100644 --- a/supply.html +++ b/supply.html @@ -80,12 +80,15 @@ font-size: 12px; color: #666; text-align: left; - padding: 8px 12px; + padding: 10px 12px; background-color: #f5f9ff; border-radius: 8px; border: 1px solid #e6f7ff; - line-height: 1; + line-height: 1.3; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); + } + + #currentUserInfo div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; @@ -95,8 +98,7 @@ @media (max-width: 768px) { #currentUserInfo { font-size: 10px; - padding: 6px 10px; - white-space: normal; + padding: 8px 10px; line-height: 1.2; } } @@ -2327,7 +2329,10 @@ const currentUserInfoEl = document.getElementById('currentUserInfo'); if (currentUserInfoEl) { const userId = parsedUserInfo.userId || parsedUserInfo.id || '未获取到'; - currentUserInfoEl.innerHTML = `当前登录用户:${parsedUserInfo.name} | 用户ID:${userId} | 职位:${parsedUserInfo.projectName}`; + currentUserInfoEl.innerHTML = ` +
当前登录用户:${parsedUserInfo.name} | 职位:${parsedUserInfo.projectName}
+
用户ID:${userId}
+ `; } // 返回解析后的用户信息