scroll quickhelp dialog if large

using `calc(100vh-padding)` for max-height
This commit is contained in:
Min RK 2015-03-13 13:16:13 -07:00
parent cf6925ce7a
commit 676da764fe
2 changed files with 7 additions and 4 deletions

View File

@ -120,9 +120,11 @@ span#login_widget > .button,
// class for stretching dialogs to fill the screen
.modal_stretch .modal-dialog {
.vbox();
min-height: 80%;
min-height: 80vh;
.modal-body {
max-height: none;
// ~"foo" is to avoid less turning this into a weird value
max-height: calc(~"100vh - 200px");
overflow: auto;
flex: 1;
}
}

View File

@ -8572,10 +8572,11 @@ span#login_widget > .button .badge,
display: flex;
flex-direction: column;
align-items: stretch;
min-height: 80%;
min-height: 80vh;
}
.modal_stretch .modal-dialog .modal-body {
max-height: none;
max-height: calc(100vh - 200px);
overflow: auto;
flex: 1;
}
@media (min-width: 768px) {