Skip to content

Commit

Permalink
['group members' dialog] display a scrollbar in the dialog when it ne…
Browse files Browse the repository at this point in the history
…eds (#6324)
  • Loading branch information
llj authored Jul 10, 2024
1 parent a27f6d3 commit 1a443c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/dialog/group-members-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class GroupMembers extends React.Component {
return (
<Modal isOpen={true} toggle={this.props.toggleDialog}>
<ModalHeader toggle={this.props.toggleDialog}>{`${gettext('Group members')} (${members.length})`}</ModalHeader>
<ModalBody className="px-0">
<ModalBody className="px-0 group-members-container">
<ul className="list-unstyled">
{members.map((item, index) => {
return <li key={index} className="group-member px-4 py-2 d-flex align-items-center">
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/css/group-view.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.group-members-container {
max-height: 500px;
overflow: auto;
}

.group-member:hover {
background: #f5f5f5;
}

0 comments on commit 1a443c2

Please sign in to comment.