summaryrefslogtreecommitdiffstats
path: root/webapp/components/sidebar.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/sidebar.jsx')
-rw-r--r--webapp/components/sidebar.jsx31
1 files changed, 17 insertions, 14 deletions
diff --git a/webapp/components/sidebar.jsx b/webapp/components/sidebar.jsx
index a4d85f4ff..be0fb205b 100644
--- a/webapp/components/sidebar.jsx
+++ b/webapp/components/sidebar.jsx
@@ -169,6 +169,9 @@ export default class Sidebar extends React.Component {
$('.sidebar--left .nav-pills__container').perfectScrollbar();
}
+ this.refs.container.scrollTop = 0;
+ $('.nav-pills__container').perfectScrollbar('update');
+
// close the LHS on mobile when you change channels
if (this.state.activeId !== prevState.activeId) {
$('.app__body .inner-wrap').removeClass('move--right');
@@ -640,13 +643,13 @@ export default class Sidebar extends React.Component {
placement='top'
overlay={createChannelTootlip}
>
- <a
- className='add-channel-btn'
- href='#'
- onClick={this.showNewChannelModal.bind(this, 'O')}
- >
- {'+'}
- </a>
+ <a
+ className='add-channel-btn'
+ href='#'
+ onClick={this.showNewChannelModal.bind(this, 'O')}
+ >
+ {'+'}
+ </a>
</OverlayTrigger>
</h4>
</li>
@@ -677,13 +680,13 @@ export default class Sidebar extends React.Component {
placement='top'
overlay={createGroupTootlip}
>
- <a
- className='add-channel-btn'
- href='#'
- onClick={this.showNewChannelModal.bind(this, 'P')}
- >
- {'+'}
- </a>
+ <a
+ className='add-channel-btn'
+ href='#'
+ onClick={this.showNewChannelModal.bind(this, 'P')}
+ >
+ {'+'}
+ </a>
</OverlayTrigger>
</h4>
</li>