From 054ebb9458ec5fe79d0ec958d8daef2ac919c26d Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 22 Jan 2020 21:07:29 -0700 Subject: [PATCH] Fix scrollable area and padding in user lists dialog --- res/css/views/dialogs/_InviteDialog.scss | 15 +++++++++++++++ src/components/views/dialogs/InviteDialog.js | 8 +++++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/res/css/views/dialogs/_InviteDialog.scss b/res/css/views/dialogs/_InviteDialog.scss index 221ad7d48c..71fab50339 100644 --- a/res/css/views/dialogs/_InviteDialog.scss +++ b/res/css/views/dialogs/_InviteDialog.scss @@ -210,4 +210,19 @@ limitations under the License. .mx_InviteDialog { // Prevent the dialog from jumping around randomly when elements change. height: 590px; + padding-left: 20px; // the design wants some padding on the left +} + +.mx_InviteDialog_userSections { + margin-top: 10px; + overflow-y: auto; + padding-right: 45px; + height: 455px; // mx_InviteDialog's height minus some for the upper elements +} + +// Right margin for the design. We could apply this to the whole dialog, but then the scrollbar +// for the user section gets weird. +.mx_InviteDialog_helpText, +.mx_InviteDialog_addressBar { + margin-right: 45px; } diff --git a/src/components/views/dialogs/InviteDialog.js b/src/components/views/dialogs/InviteDialog.js index 703b0b5121..cb4f123cea 100644 --- a/src/components/views/dialogs/InviteDialog.js +++ b/src/components/views/dialogs/InviteDialog.js @@ -970,7 +970,7 @@ export default class InviteDialog extends React.PureComponent { title={title} >
-

{helpText}

+

{helpText}

{this._renderEditor()}
@@ -987,8 +987,10 @@ export default class InviteDialog extends React.PureComponent {
{this._renderIdentityServerWarning()}
{this.state.errorText}
- {this._renderSection('recents')} - {this._renderSection('suggestions')} +
+ {this._renderSection('recents')} + {this._renderSection('suggestions')} +
);