diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-04-25 10:46:56 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-04-25 10:46:56 -0400 |
commit | 3f93aafbc6b4f304d9458c8a4d08c507d45103e2 (patch) | |
tree | 0e1710bb833ada868edb3ba821a771cc19d42094 /webapp/components | |
parent | 2337fe236e6afe0df3cfe4b0a7a0f5a88c41e033 (diff) | |
download | chat-3f93aafbc6b4f304d9458c8a4d08c507d45103e2.tar.gz chat-3f93aafbc6b4f304d9458c8a4d08c507d45103e2.tar.bz2 chat-3f93aafbc6b4f304d9458c8a4d08c507d45103e2.zip |
Fixed LHS to close when changing channels (#2794)
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/sidebar.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/components/sidebar.jsx b/webapp/components/sidebar.jsx index 500e73cf2..2ccf01740 100644 --- a/webapp/components/sidebar.jsx +++ b/webapp/components/sidebar.jsx @@ -168,6 +168,10 @@ export default class Sidebar extends React.Component { if (!Utils.isMobile()) { $('.sidebar--left .nav-pills__container').perfectScrollbar(); } + + // close the LHS on mobile when you change channels + $('.app__body .inner-wrap').removeClass('move--right'); + $('.app__body .sidebar--left').removeClass('move--right'); } componentWillUnmount() { window.removeEventListener('resize', this.handleResize); |