From c0a631000e20b504c8f264b5863f2c1d5e08706c Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Tue, 8 Nov 2016 19:58:32 +0500 Subject: PLT-4609 - Fixing list modals on mobile (#4453) * PLT-4609 - Fixing list modals on mobile Removing style prop Removing utils import PLT-4609 - Fixing list modals on mobile Removing style prop Removing utils import Removing Utils Removing memberlist style prop Removing blank line * Removing height code from team members modal --- webapp/components/channel_invite_modal.jsx | 6 ------ webapp/components/channel_members_modal.jsx | 7 ------- webapp/components/member_list_team.jsx | 2 -- webapp/components/more_channels.jsx | 10 +--------- webapp/components/more_direct_channels.jsx | 7 ------- webapp/components/searchable_user_list.jsx | 6 +----- webapp/components/team_members_modal.jsx | 7 ------- webapp/sass/responsive/_mobile.scss | 9 +++++++-- 8 files changed, 9 insertions(+), 45 deletions(-) diff --git a/webapp/components/channel_invite_modal.jsx b/webapp/components/channel_invite_modal.jsx index 89185435a..cffc73705 100644 --- a/webapp/components/channel_invite_modal.jsx +++ b/webapp/components/channel_invite_modal.jsx @@ -11,7 +11,6 @@ import TeamStore from 'stores/team_store.jsx'; import {searchUsers} from 'actions/user_actions.jsx'; -import * as Utils from 'utils/utils.jsx'; import * as AsyncClient from 'utils/async_client.jsx'; import React from 'react'; @@ -133,13 +132,8 @@ export default class ChannelInviteModal extends React.Component { if (this.state.loading) { content = (); } else { - let maxHeight = 1000; - if (Utils.windowHeight() <= 1200) { - maxHeight = Utils.windowHeight() - 300; - } content = ( ); } else { - let maxHeight = 1000; - if (Utils.windowHeight() <= 1200) { - maxHeight = Utils.windowHeight() - 300; - } - let removeButton = null; if (this.props.isAdmin) { removeButton = [this.createRemoveMemberButton]; @@ -156,7 +150,6 @@ export default class ChannelMembersModal extends React.Component { content = ( ; @@ -204,10 +199,7 @@ export default class MoreChannels extends React.Component { onModalDismissed={() => this.setState({showNewChannelModal: false})} /> -
+
{moreChannels} {serverError}
diff --git a/webapp/components/more_direct_channels.jsx b/webapp/components/more_direct_channels.jsx index 7c61d2f2e..f672cb617 100644 --- a/webapp/components/more_direct_channels.jsx +++ b/webapp/components/more_direct_channels.jsx @@ -12,7 +12,6 @@ import TeamStore from 'stores/team_store.jsx'; import * as AsyncClient from 'utils/async_client.jsx'; import * as UserAgent from 'utils/user_agent.jsx'; -import * as Utils from 'utils/utils.jsx'; import Constants from 'utils/constants.jsx'; import React from 'react'; @@ -182,11 +181,6 @@ export default class MoreDirectChannels extends React.Component { } render() { - let maxHeight = 1000; - if (Utils.windowHeight() <= 1200) { - maxHeight = Utils.windowHeight() - 300; - } - let teamToggle; if (global.window.mm_config.RestrictDirectMessage === 'any') { teamToggle = ( @@ -242,7 +236,6 @@ export default class MoreDirectChannels extends React.Component { {teamToggle} +
diff --git a/webapp/sass/responsive/_mobile.scss b/webapp/sass/responsive/_mobile.scss index d18295dc4..6a6153469 100644 --- a/webapp/sass/responsive/_mobile.scss +++ b/webapp/sass/responsive/_mobile.scss @@ -9,8 +9,6 @@ } .filtered-user-list { - max-height: 65vh !important; - .filter-button { .btn { width: 100%; @@ -1309,6 +1307,12 @@ .app__body { .modal { + &.more-channel__modal { + .modal-body { + padding-bottom: 35px; + } + } + .settings-modal { &.display--content { .modal-body { @@ -1318,6 +1322,7 @@ .modal-body { max-height: 70%; + padding-bottom: 0; } .settings-table { -- cgit v1.2.3-1-g7c22