ui: 프로필 헤더에서 이름 제거, 이메일/로그아웃 글자 흰색으로

- index.html: profile-name-block 제거. 이름은 이메일 span 의 title(hover tooltip)로 보존.
- app.js: 이제 표시하지 않는 user-name 관련 코드 정리.
- style.css: profile-email 흰색 + 굵게, 로그아웃 버튼도 흰색 + 어울리는 반투명 배경.
This commit is contained in:
2026-05-24 14:24:24 +09:00
parent 931ad173ab
commit 53a2d222b0
3 changed files with 12 additions and 30 deletions
+9 -21
View File
@@ -1776,24 +1776,12 @@ input[type="checkbox"] {
gap: 10px;
}
.nav-profile-area .profile-name-block {
display: flex;
flex-direction: column;
line-height: 1.2;
text-align: right;
}
.nav-profile-area .profile-name {
font-size: 14px;
font-weight: 700;
color: inherit;
white-space: nowrap;
}
.nav-profile-area .profile-email {
font-size: 11px;
color: rgba(120, 120, 130, 0.75);
font-size: 13px;
font-weight: 600;
color: #ffffff;
white-space: nowrap;
letter-spacing: 0.1px;
}
.nav-profile-area .profile-avatar {
@@ -1825,10 +1813,10 @@ input[type="checkbox"] {
align-items: center;
gap: 6px;
padding: 6px 12px;
background: rgba(0, 0, 0, 0.05);
border: 1px solid rgba(0, 0, 0, 0.1);
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.25);
border-radius: 8px;
color: inherit;
color: #ffffff;
font-size: 12px;
font-weight: 600;
cursor: pointer;
@@ -1837,8 +1825,8 @@ input[type="checkbox"] {
}
.nav-profile-area .btn-logout-text:hover {
background: rgba(0, 0, 0, 0.1);
border-color: rgba(0, 0, 0, 0.2);
background: rgba(255, 255, 255, 0.22);
border-color: rgba(255, 255, 255, 0.45);
}
/* 모바일에서 이메일은 숨겨 공간 절약 */
+1 -4
View File
@@ -99,10 +99,7 @@
<button id="btn-data-management" class="icon-btn mini-icon-btn nav-tool-btn" title="데이터 관리"><i
class="fa-solid fa-database"></i></button>
<div class="profile-info">
<div class="profile-name-block">
<span class="profile-name" id="user-name">__USER_NAME__</span>
<span class="profile-email">__USER_EMAIL__</span>
</div>
<span class="profile-email" title="__USER_NAME__">__USER_EMAIL__</span>
<div class="profile-avatar">__USER_AVATAR__</div>
</div>
<button class="btn-logout-text" onclick="window.location.href='/logout'" title="로그아웃">
+2 -5
View File
@@ -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';
}