Allow modal content to grow

This commit is contained in:
Maximilian Grundke
2017-09-05 16:39:40 +02:00
parent cded685f50
commit 2869c0d7b8
2 changed files with 24 additions and 3 deletions

View File

@ -25,6 +25,25 @@
.modal-content {
min-height: 512px;
min-width: 360px;
max-height: 90vh;
display: flex;
flex-direction: column;
.modal-body {
flex-grow: 1;
display: flex;
flex-direction: column;
#otherComments {
flex-grow: 1;
display: flex;
flex-direction: column;
.container {
flex-grow: 1;
}
}
}
}
.comment {
@ -90,7 +109,6 @@
.container {
width: 100%;
max-height: 200px;
overflow-y: auto;
border: 1px solid #cccccc;
padding: 15px;
@ -118,4 +136,8 @@
textarea {
resize: none;
}
button {
margin-top: 10px;
}
}

View File

@ -5,5 +5,4 @@
#myComment
h5 =t('exercises.implement.comment.addyours')
textarea.form-control
button#addCommentButton.btn.btn-block.btn-primary(type='button') =t('exercises.implement.comment.addCommentButton')
button#addCommentButton.btn.btn-block.btn-primary(type='button') =t('exercises.implement.comment.addCommentButton')