ui: 프로필 헤더에서 이름 제거, 이메일/로그아웃 글자 흰색으로
- index.html: profile-name-block 제거. 이름은 이메일 span 의 title(hover tooltip)로 보존. - app.js: 이제 표시하지 않는 user-name 관련 코드 정리. - style.css: profile-email 흰색 + 굵게, 로그아웃 버튼도 흰색 + 어울리는 반투명 배경.
This commit is contained in:
+2
-5
@@ -3,8 +3,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
const appUrl = (path) => `${APP_BASE_PATH}${path.startsWith('/') ? path : `/${path}`}`;
|
||||
|
||||
// --- Elements ---
|
||||
// loginScreen 은 더 이상 존재하지 않음 (서버에서 미인증 사용자를 dbx-main 으로 리다이렉트)
|
||||
const userNameEl = document.getElementById('user-name');
|
||||
// loginScreen / user-name 표시는 더 이상 존재하지 않음.
|
||||
// (서버에서 미인증 사용자를 dbx-main 으로 리다이렉트하고, 이름 표시는 제거됨)
|
||||
|
||||
const searchInputs = {
|
||||
name: document.getElementById('search-name'),
|
||||
@@ -191,9 +191,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
const res = await fetch(appUrl('/api/users/me'));
|
||||
if (res.ok) {
|
||||
currentUser = await res.json();
|
||||
if (userNameEl && currentUser.name) {
|
||||
userNameEl.textContent = currentUser.name;
|
||||
}
|
||||
if (btnDataManagement) {
|
||||
btnDataManagement.style.display = currentUser.is_admin ? 'inline-flex' : 'none';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user