Make modal resizable

This commit is contained in:
Maximilian Grundke
2017-09-05 16:04:50 +02:00
parent 7bb77e5829
commit cded685f50
2 changed files with 10 additions and 1 deletions

View File

@ -22,6 +22,11 @@
display: none !important; display: none !important;
} }
.modal-content {
min-height: 512px;
min-width: 360px;
}
.comment { .comment {
width: 100%; width: 100%;
min-width: 200px; min-width: 200px;

View File

@ -81,7 +81,11 @@ also, all settings from the rails model needed for the editor configuration in t
<script type="text/javascript"> <script type="text/javascript">
$('.modal-content').draggable({handle: '.modal-header'}); $('.modal-content').draggable({
handle: '.modal-header'
}).resizable({
autoHide: true
});
var solvedButton = $('#mark-as-solved-button'); var solvedButton = $('#mark-as-solved-button');
var addCommentExerciseButton = $('#addCommentExerciseButton'); var addCommentExerciseButton = $('#addCommentExerciseButton');