From c49f3b3956fae1b00145568140c940d5fa053eb8 Mon Sep 17 00:00:00 2001
From: Asaad Mahmood <Unknowngi@live.com>
Date: Tue, 3 Nov 2015 19:56:46 +0500
Subject: Multiple UI changes

---
 web/react/components/settings_sidebar.jsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'web/react/components/settings_sidebar.jsx')

diff --git a/web/react/components/settings_sidebar.jsx b/web/react/components/settings_sidebar.jsx
index 4af46c35a..bc0f48a4e 100644
--- a/web/react/components/settings_sidebar.jsx
+++ b/web/react/components/settings_sidebar.jsx
@@ -5,6 +5,9 @@ export default class SettingsSidebar extends React.Component {
     componentDidUpdate() {
         $('.settings-modal').find('.modal-body').scrollTop(0);
         $('.settings-modal').find('.modal-body').perfectScrollbar('update');
+        if (navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1) {
+            $('.settings-modal .settings-links .nav').addClass('absolute');
+        }
     }
     constructor(props) {
         super(props);
-- 
cgit v1.2.3-1-g7c22


From 38fd4acebd17775c9adc81f719ffc044e3bf6cde Mon Sep 17 00:00:00 2001
From: Asaad Mahmood <Unknowngi@live.com>
Date: Tue, 3 Nov 2015 21:56:18 +0500
Subject: Adding browser functions in utilis and calling them in
 settings_sidebar

---
 web/react/components/settings_sidebar.jsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'web/react/components/settings_sidebar.jsx')

diff --git a/web/react/components/settings_sidebar.jsx b/web/react/components/settings_sidebar.jsx
index bc0f48a4e..68d9cea48 100644
--- a/web/react/components/settings_sidebar.jsx
+++ b/web/react/components/settings_sidebar.jsx
@@ -1,11 +1,12 @@
 // Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
 // See License.txt for license information.
+var utils = require('../utils/utils.jsx');
 
 export default class SettingsSidebar extends React.Component {
     componentDidUpdate() {
         $('.settings-modal').find('.modal-body').scrollTop(0);
         $('.settings-modal').find('.modal-body').perfectScrollbar('update');
-        if (navigator.userAgent.indexOf('Safari') !== -1 && navigator.userAgent.indexOf('Chrome') === -1) {
+        if (utils.isSafari()) {
             $('.settings-modal .settings-links .nav').addClass('absolute');
         }
     }
-- 
cgit v1.2.3-1-g7c22

