Skip to content

Commit

Permalink
fix(overlay): adjust max heights to always fit viewport
Browse files Browse the repository at this point in the history
Closes #2882
  • Loading branch information
smbea committed Apr 11, 2022
1 parent c9b78d8 commit 0e468b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export function ReportFeedbackOverlay(props) {
<Overlay
anchor={ props.anchor }
onClose={ props.onClose }
maxHeight="calc(100vh - 250px)"
offset={ OFFSET }
className={ css.ReportFeedbackOverlay }
>
Expand Down
3 changes: 3 additions & 0 deletions client/src/shared/ui/overlay/Overlay.less
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@
.fields {
display: grid;
grid-gap: 12px;
max-height: calc(100vh - 176px);
overflow: scroll;
}

button[type="submit"] {
Expand All @@ -113,6 +115,7 @@

ul.dashed {
list-style: none;
max-height: calc(100vh - 250px);

li {
margin-bottom: 4px;
Expand Down

0 comments on commit 0e468b1

Please sign in to comment.