Skip to content

Commit

Permalink
fix: CE-1143-apply-scroll-bar-to-assign-modal (#710)
Browse files Browse the repository at this point in the history
Co-authored-by: afwilcox <[email protected]>
  • Loading branch information
dmitri-korin-bcps and afwilcox authored Oct 16, 2024
1 parent d86e33e commit 24a3c76
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const AuthoizationOutcome: FC = () => {
modalSize: "md",
modalType: DELETE_CONFIRM,
data: {
title: "Delete Authorization?",
title: "Delete authorization?",
description: "Your changes will be lost.",
confirmText: "delete authorization",
deleteConfirmed: () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export const AssignOfficerModal: FC<AssignOfficerModalProps> = ({ close, submit,
</section>
<section>
<h4 style={{ marginBottom: "8px", fontSize: "16px", fontWeight: 700 }}>{renderHeading()}</h4>
<ListGroup>{renderOfficers()}</ListGroup>
<ListGroup className="modal-scroll">{renderOfficers()}</ListGroup>
</section>
</Modal.Body>
<Modal.Footer>
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/assets/sass/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,13 @@ button.modal-buttons {
background-color: $gray-100;
}

.modal-scroll {
min-height: 70px;
max-height: 264px;
overflow-y: scroll;
overflow-x: hidden;
}

.self-assign {
margin-bottom: 10px;
&:hover {
Expand Down

0 comments on commit 24a3c76

Please sign in to comment.