Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.

Commit c00e251

Browse files
committed
fix: nav indicator follows Notifications item, panel left adjusts on collapsed sidebar
1 parent 1197dcc commit c00e251

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

public/css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,10 @@ tbody tr:hover {
12511251
transform: translateX(0);
12521252
}
12531253

1254+
.sidebar.collapsed ~ .notif-panel {
1255+
left: 60px;
1256+
}
1257+
12541258
.notif-backdrop {
12551259
position: fixed;
12561260
inset: 0;

public/js/app.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,11 @@ function openNotifPanel() {
313313
$('#notif-panel').classList.add('open');
314314
$('#notif-backdrop').classList.add('open');
315315
document.body.style.overflow = 'hidden';
316+
317+
document.querySelectorAll('.nav-item').forEach(n => n.classList.remove('active'));
318+
$('#nav-notifications').classList.add('active');
319+
updateNavIndicator();
320+
316321
fetchNotifications();
317322
if (state.unreadCount > 0) {
318323
fetchUnreadCount();
@@ -324,6 +329,11 @@ function closeNotifPanel() {
324329
$('#notif-panel').classList.remove('open');
325330
$('#notif-backdrop').classList.remove('open');
326331
document.body.style.overflow = '';
332+
333+
document.querySelectorAll('.nav-item').forEach(n => n.classList.remove('active'));
334+
const targetNav = document.querySelector(`.nav-item[data-page="${state.currentPage}"]`);
335+
if (targetNav) targetNav.classList.add('active');
336+
updateNavIndicator();
327337
}
328338

329339
function showCapModal() {

0 commit comments

Comments
 (0)