diff options
author | Asaad Mahmood <asaad@spinpunch.com> | 2016-03-23 04:06:08 +0500 |
---|---|---|
committer | Asaad Mahmood <asaad@spinpunch.com> | 2016-03-23 18:16:41 +0500 |
commit | e60f6f3b137839ed603a1b5d45cf658b6570ff91 (patch) | |
tree | dc50cde2a5e5c5732eab5cd11b9d219ce9444f5d /webapp/components/activity_log_modal.jsx | |
parent | 18b8ae5298f50161ffa55b6d8576a5438fe0091a (diff) | |
download | chat-e60f6f3b137839ed603a1b5d45cf658b6570ff91.tar.gz chat-e60f6f3b137839ed603a1b5d45cf658b6570ff91.tar.bz2 chat-e60f6f3b137839ed603a1b5d45cf658b6570ff91.zip |
Multiple UI improvements
Diffstat (limited to 'webapp/components/activity_log_modal.jsx')
-rw-r--r-- | webapp/components/activity_log_modal.jsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/webapp/components/activity_log_modal.jsx b/webapp/components/activity_log_modal.jsx index 9a4ff3ef2..f1dd4a26a 100644 --- a/webapp/components/activity_log_modal.jsx +++ b/webapp/components/activity_log_modal.jsx @@ -2,7 +2,6 @@ // See License.txt for license information. import $ from 'jquery'; -import ReactDOM from 'react-dom'; import UserStore from 'stores/user_store.jsx'; import * as Client from 'utils/client.jsx'; import * as AsyncClient from 'utils/async_client.jsx'; @@ -56,11 +55,8 @@ export default class ActivityLogModal extends React.Component { } onShow() { AsyncClient.getSessions(); - - if ($(window).width() > 768) { - $(ReactDOM.findDOMNode(this.refs.modalBody)).css('max-height', $(window).height() - 200); - } else { - $(ReactDOM.findDOMNode(this.refs.modalBody)).css('max-height', $(window).height() - 150); + if (!Utils.isMobile()) { + $('.modal-body').perfectScrollbar(); } } onHide() { |