Web: People: fixed user list styles

This commit is contained in:
Nikita Gopienko 2020-02-26 15:35:12 +03:00
parent d33895d8d5
commit 888d735790
4 changed files with 4 additions and 5 deletions

View File

@ -83,7 +83,7 @@ class ChangeUserStatusDialogComponent extends React.Component {
render() {
const { t, onClose, visible, userStatus } = this.props;
const { listUsers, isRequestRunning, userIds } = this.state;
const containerStyles = { height: 220 };
const containerStyles = { height: listUsers.length * 25, maxHeight: 220 };
const itemSize = 25;
const renderItems = memo(({ data, index, style }) => {

View File

@ -77,7 +77,7 @@ class ChangeUserTypeDialogComponent extends React.Component {
const { visible, onClose, t, userType } = this.props;
const { isRequestRunning, listUsers, userIds } = this.state;
const itemSize = 25;
const containerStyles = { height: 220 };
const containerStyles = { height: listUsers.length * 25, maxHeight: 220 };
const renderItems = memo(({ data, index, style }) => {
return (

View File

@ -83,7 +83,7 @@ class DeleteGroupUsersDialogComponent extends React.Component {
const { t, onClose, visible } = this.props;
const { isRequestRunning, userIds, listUsers } = this.state;
const itemSize = 25;
const containerStyles = { height: 220 };
const containerStyles = { height: listUsers.length * 25, maxHeight: 220 };
const renderItems = memo(({ data, index, style }) => {
return (

View File

@ -83,7 +83,7 @@ class SendInviteDialogComponent extends React.Component {
const { t, onClose, visible } = this.props;
const { listUsers, isRequestRunning, userIds } = this.state;
const itemSize = 25;
const containerStyles = { height: 220 };
const containerStyles = { height: listUsers.length * 25, maxHeight: 220 };
const renderItems = memo(({ data, index, style }) => {
return (
@ -128,7 +128,6 @@ class SendInviteDialogComponent extends React.Component {
<ToggleContent
className="toggle-content-dialog"
label={t("ShowUsersList")}
isOpen
>
<div style={containerStyles} className="modal-dialog-content">
<AutoSizer>{renderList}</AutoSizer>