Skip to content

Commit

Permalink
feat(g4f/gui/client/static/js/chat.v1.js): enhance sidebar interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
kqlio67 committed Feb 10, 2025
1 parent fd1d589 commit bd8071b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions g4f/gui/client/static/js/chat.v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -2738,3 +2738,13 @@ document.getElementById("showLog").addEventListener("click", ()=> {
settings.classList.add("hidden");
log_storage.scrollTop = log_storage.scrollHeight;
});

document.querySelector('.mobile-sidebar').addEventListener('click', function() {
document.querySelector('.conversations').classList.toggle('active');
});

document.addEventListener('click', function(e) {
if(!e.target.closest('.conversations') && !e.target.closest('.mobile-sidebar')) {
document.querySelector('.conversations').classList.remove('active');
}
});

0 comments on commit bd8071b

Please sign in to comment.