diff options
Diffstat (limited to 'webapp/components/sidebar.jsx')
-rw-r--r-- | webapp/components/sidebar.jsx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/webapp/components/sidebar.jsx b/webapp/components/sidebar.jsx index f6958e721..f0e17d986 100644 --- a/webapp/components/sidebar.jsx +++ b/webapp/components/sidebar.jsx @@ -370,6 +370,15 @@ export default class Sidebar extends React.Component { this.setState({showDirectChannelsModal: false}); } + openLeftSidebar() { + if (Utils.isMobile()) { + setTimeout(() => { + document.querySelector('.app__body .inner-wrap').classList.add('move--right'); + document.querySelector('.app__body .sidebar--left').classList.add('move--right'); + }); + } + } + createTutorialTip() { const screens = []; @@ -535,6 +544,7 @@ export default class Sidebar extends React.Component { let tutorialTip = null; if (this.state.showTutorialTip && channel.name === Constants.DEFAULT_CHANNEL) { tutorialTip = this.createTutorialTip(); + this.openLeftSidebar(); } let link = ''; |