diff options
author | Asaad Mahmood <asaadmahmoodspin@users.noreply.github.com> | 2016-06-14 22:53:47 +0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-06-14 13:53:47 -0400 |
commit | f6b4a611d0ef28d5f08959a51c31ad480df1883a (patch) | |
tree | 5adeac68d78fe59cb6f7731cc953faec4bbc77df /webapp/components/sidebar.jsx | |
parent | af4110b2ed9654986c8ef150d7ca9e76f326191c (diff) | |
download | chat-f6b4a611d0ef28d5f08959a51c31ad480df1883a.tar.gz chat-f6b4a611d0ef28d5f08959a51c31ad480df1883a.tar.bz2 chat-f6b4a611d0ef28d5f08959a51c31ad480df1883a.zip |
Multiple UI improvements (#3317)
Removing break all
Replacing jquery selectors and some other UI improvements
Removing jquery selector
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 = ''; |