Skip to content

Commit 8782a82

Browse files
committed
fix: animate indicator to Notification when clicked
1 parent ff4d28b commit 8782a82

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

public/js/app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,6 +1313,9 @@ function renderSidebarNav() {
13131313
if (notifItem) {
13141314
notifItem.addEventListener('click', (e) => {
13151315
e.preventDefault();
1316+
itemsContainer.querySelectorAll('.nav-item, .nav-parent').forEach(n => n.classList.remove('active'));
1317+
notifItem.classList.add('active');
1318+
updateNavIndicator();
13161319
toggleNotifPanel();
13171320
});
13181321
}

0 commit comments

Comments
 (0)