summaryrefslogtreecommitdiffstats
path: root/web/react/components/sidebar.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-11-30 20:35:47 -0800
committerCorey Hulen <corey@hulen.com>2015-11-30 20:35:47 -0800
commit0d3f0f348139d9749de232c50c452d95b07e6c05 (patch)
treee59a81631577a4270168f932a4af3eaef8054e33 /web/react/components/sidebar.jsx
parent441c9991ff1a4acc613c19ea8d96f17c60bce0c4 (diff)
parentd3fd017e69943adf364a0459d3c28179a97835ff (diff)
downloadchat-0d3f0f348139d9749de232c50c452d95b07e6c05.tar.gz
chat-0d3f0f348139d9749de232c50c452d95b07e6c05.tar.bz2
chat-0d3f0f348139d9749de232c50c452d95b07e6c05.zip
Merge pull request #1547 from asaadmahmoodspin/ui-improvements
Ui improvements
Diffstat (limited to 'web/react/components/sidebar.jsx')
-rw-r--r--web/react/components/sidebar.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx
index 30422ff7d..b4c037183 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)) {