summaryrefslogtreecommitdiffstats
path: root/web/react/components/sidebar.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <asaad@spinpunch.com>2015-11-30 22:27:45 +0500
committerAsaad Mahmood <asaad@spinpunch.com>2015-11-30 22:27:45 +0500
commitbe582b4fe3efd9b35a7df86a6c270ddb5b3bb409 (patch)
tree5db3852876b30db7f30156e8a658005505be4928 /web/react/components/sidebar.jsx
parentc919bd9e52e56621c9f94007de6410c3810e06c3 (diff)
downloadchat-be582b4fe3efd9b35a7df86a6c270ddb5b3bb409.tar.gz
chat-be582b4fe3efd9b35a7df86a6c270ddb5b3bb409.tar.bz2
chat-be582b4fe3efd9b35a7df86a6c270ddb5b3bb409.zip
Fixing LHS scroll and Image previews
Diffstat (limited to 'web/react/components/sidebar.jsx')
-rw-r--r--web/react/components/sidebar.jsx5
1 files changed, 5 insertions, 0 deletions
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() {
}