From addd4124bf00f11ba33e47f3bba303727d39ce36 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Fri, 2 Aug 2019 16:12:01 +0300 Subject: [PATCH] Close sidebar when opening settings, help etc. --- client/js/lounge.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/js/lounge.js b/client/js/lounge.js index dafb6011..5a1062c0 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -108,6 +108,10 @@ window.vueMounted = () => { } else { vueApp.activeChannel = null; vueApp.$store.commit("activeWindow", target); + + if (!keepSidebarOpen && $(window).outerWidth() <= utils.mobileViewportPixels) { + vueApp.setSidebar(false); + } } utils.synchronizeNotifiedState();