diff options
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/more_direct_channels.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/more_direct_channels.jsx b/web/react/components/more_direct_channels.jsx index f66eb7c26..3661b19e6 100644 --- a/web/react/components/more_direct_channels.jsx +++ b/web/react/components/more_direct_channels.jsx @@ -54,11 +54,11 @@ export default class MoreDirectChannels extends React.Component { } onShow() { - if (!Utils.isMobile()) { + if (Utils.isMobile()) { + $(ReactDOM.findDOMNode(this.refs.userList)).css('max-height', $(window).height() - 250); + } else { $(ReactDOM.findDOMNode(this.refs.userList)).perfectScrollbar(); $(ReactDOM.findDOMNode(this.refs.userList)).css('max-height', $(window).height() - 300); - } else { - $(ReactDOM.findDOMNode(this.refs.userList)).css('max-height', $(window).height() - 250); } } |