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 19, 2022
1 parent c9b78d8 commit d52ff9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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
7 changes: 5 additions & 2 deletions client/src/shared/ui/overlay/Overlay.less
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@

fieldset {
border: none;
margin: 0 0 5px 0;
padding: 0;
margin: 0 -12px 5px 0;
padding: 0 12px 0 0;
max-height: calc(100vh - 176px);
overflow-y: auto;
}

.fields {
Expand Down Expand Up @@ -113,6 +115,7 @@

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

li {
margin-bottom: 4px;
Expand Down

0 comments on commit d52ff9f

Please sign in to comment.