summaryrefslogtreecommitdiffstats
path: root/web/react/components/settings_sidebar.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <asaad@spinpunch.com>2015-12-18 19:47:33 +0500
committerAsaad Mahmood <asaad@spinpunch.com>2015-12-18 19:47:33 +0500
commit3d0249c8bc2d5f12f8528dd0fcb7d02c66bee626 (patch)
tree1ffa768fb5796da6145f13ee9f2e766f2f668c61 /web/react/components/settings_sidebar.jsx
parentbb9cb1029539b179725a586057c39507597300de (diff)
downloadchat-3d0249c8bc2d5f12f8528dd0fcb7d02c66bee626.tar.gz
chat-3d0249c8bc2d5f12f8528dd0fcb7d02c66bee626.tar.bz2
chat-3d0249c8bc2d5f12f8528dd0fcb7d02c66bee626.zip
Multiple UI Improvements
Diffstat (limited to 'web/react/components/settings_sidebar.jsx')
-rw-r--r--web/react/components/settings_sidebar.jsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/react/components/settings_sidebar.jsx b/web/react/components/settings_sidebar.jsx
index 4af46c35a..271ea9a41 100644
--- a/web/react/components/settings_sidebar.jsx
+++ b/web/react/components/settings_sidebar.jsx
@@ -1,6 +1,8 @@
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
+import * as Utils from '../utils/utils.jsx';
+
export default class SettingsSidebar extends React.Component {
componentDidUpdate() {
$('.settings-modal').find('.modal-body').scrollTop(0);
@@ -16,6 +18,11 @@ export default class SettingsSidebar extends React.Component {
this.props.updateTab(tab.name);
$(e.target).closest('.settings-modal').addClass('display--content');
}
+ componentDidMount() {
+ if (Utils.isBrowserFirefox()) {
+ $('.settings-modal .settings-table .nav').addClass('position--top');
+ }
+ }
render() {
let tabList = this.props.tabs.map(function makeTab(tab) {
let key = `${tab.name}_li`;