fix(tbm): 내 TBM 인식 + admin 편집 + 데스크탑 폭 + 하단네비 정리
- isMySession: admin/system/support_team 바이패스 + 중복 비교 제거 - CSS: max-width 480→768px (데스크탑 너무 좁은 문제) - 하단 네비: 현황/출근 제거 → 연차관리(my-vacation-info) 추가 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,7 @@ button, .m-tbm-row, .m-tab, .m-new-btn, .m-detail-btn, .m-load-more,
|
||||
touch-action: manipulation;
|
||||
}
|
||||
@media (min-width: 480px) {
|
||||
body { max-width: 480px; margin: 0 auto; min-height: 100vh; }
|
||||
body { max-width: 768px; margin: 0 auto; min-height: 100vh; }
|
||||
}
|
||||
|
||||
/* Header */
|
||||
@@ -306,7 +306,7 @@ button, .m-tbm-row, .m-tab, .m-new-btn, .m-detail-btn, .m-load-more,
|
||||
justify-content: space-around;
|
||||
}
|
||||
@media (min-width: 480px) {
|
||||
.m-bottom-nav { max-width: 480px; margin: 0 auto; }
|
||||
.m-bottom-nav { max-width: 768px; margin: 0 auto; }
|
||||
}
|
||||
.m-nav-item {
|
||||
display: flex;
|
||||
|
||||
@@ -123,11 +123,12 @@
|
||||
};
|
||||
|
||||
function isMySession(s) {
|
||||
var role = (currentUser.role || '').toLowerCase();
|
||||
if (role === 'admin' || role === 'system' || role === 'support_team') return true;
|
||||
var userId = currentUser.user_id;
|
||||
var workerId = currentUser.user_id;
|
||||
var userName = currentUser.name;
|
||||
return (userId && String(s.created_by) === String(userId)) ||
|
||||
(workerId && String(s.leader_user_id) === String(workerId)) ||
|
||||
return (userId && (String(s.created_by) === String(userId) ||
|
||||
String(s.leader_user_id) === String(userId))) ||
|
||||
(userName && s.created_by_name === userName);
|
||||
}
|
||||
|
||||
|
||||
@@ -95,20 +95,15 @@
|
||||
</svg>
|
||||
<span class="m-nav-label">작업보고</span>
|
||||
</a>
|
||||
<a href="/pages/work/daily-status.html" class="m-nav-item">
|
||||
<a href="/pages/attendance/my-vacation-info.html" class="m-nav-item">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M18 20V10"/>
|
||||
<path d="M12 20V4"/>
|
||||
<path d="M6 20v-6"/>
|
||||
<rect x="3" y="4" width="18" height="18" rx="2" ry="2"/>
|
||||
<line x1="16" y1="2" x2="16" y2="6"/>
|
||||
<line x1="8" y1="2" x2="8" y2="6"/>
|
||||
<line x1="3" y1="10" x2="21" y2="10"/>
|
||||
<path d="M9 16l2 2 4-4"/>
|
||||
</svg>
|
||||
<span class="m-nav-label">현황</span>
|
||||
</a>
|
||||
<a href="/pages/attendance/checkin.html" class="m-nav-item">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="12" cy="12" r="10"/>
|
||||
<polyline points="12 6 12 12 16 14"/>
|
||||
</svg>
|
||||
<span class="m-nav-label">출근</span>
|
||||
<span class="m-nav-label">연차관리</span>
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user