From be582b4fe3efd9b35a7df86a6c270ddb5b3bb409 Mon Sep 17 00:00:00 2001
From: Asaad Mahmood <asaad@spinpunch.com>
Date: Mon, 30 Nov 2015 22:27:45 +0500
Subject: Fixing LHS scroll and Image previews

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

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

diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx
index 30422ff7d..73733b6c1 100644
--- a/web/react/components/sidebar.jsx
+++ b/web/react/components/sidebar.jsx
@@ -173,6 +173,10 @@ export default class Sidebar extends React.Component {
         this.updateScrollbar();
 
         window.addEventListener('resize', this.handleResize);
+
+        if ($(window).width() > 768) {
+            $('.nav-pills__container').perfectScrollbar();
+        }
     }
     shouldComponentUpdate(nextProps, nextState) {
         if (!Utils.areObjectsEqual(nextState, this.state)) {
@@ -199,6 +203,7 @@ export default class Sidebar extends React.Component {
             windowWidth: Utils.windowWidth(),
             windowHeight: Utils.windowHeight()
         });
+        console.log('sad');
     }
     updateScrollbar() {
     }
-- 
cgit v1.2.3-1-g7c22


From d3fd017e69943adf364a0459d3c28179a97835ff Mon Sep 17 00:00:00 2001
From: Asaad Mahmood <asaad@spinpunch.com>
Date: Mon, 30 Nov 2015 22:39:01 +0500
Subject: Improving image modal and removing console log

---
 web/react/components/sidebar.jsx | 1 -
 1 file changed, 1 deletion(-)

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

diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx
index 73733b6c1..b4c037183 100644
--- a/web/react/components/sidebar.jsx
+++ b/web/react/components/sidebar.jsx
@@ -203,7 +203,6 @@ export default class Sidebar extends React.Component {
             windowWidth: Utils.windowWidth(),
             windowHeight: Utils.windowHeight()
         });
-        console.log('sad');
     }
     updateScrollbar() {
     }
-- 
cgit v1.2.3-1-g7c22

