Skip to content

Commit 37866b4

Browse files
committed
fix modal height
1 parent e5083e1 commit 37866b4

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/json-editor.component.scss

+8-8
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,6 @@ body, html {
298298
}
299299
}
300300

301-
.max-height-90-vh {
302-
max-height: 90vh;
303-
}
304-
305-
.max-height-70-vh {
306-
max-height: 70vh;
307-
}
308-
309301
div.admin-mode {
310302
padding-top: 8px;
311303
width: 100%;
@@ -416,6 +408,14 @@ body, html {
416408
border-left: 9px solid #e74c3c !important;
417409
}
418410

411+
.max-height-90-vh {
412+
max-height: 90vh;
413+
}
414+
415+
.max-height-70-vh {
416+
max-height: 70vh;
417+
}
418+
419419
// Hide all add-field-dropdown in complex-list-field in favor of single add-nested-field-dropdown
420420
complex-list-field {
421421
add-field-dropdown {

src/modal-view/modal-view.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="modal fade" (onShown)="onShow()" bsModal #modal="bs-modal" tabindex="-1" role="dialog" [config]="{ backdrop: false }">
22
<div class="modal-dialog modal-lg">
3-
<div *ngIf="options" class="modal-content max-height-90-vh">
3+
<div *ngIf="options" class="modal-content">
44
<div class="modal-header">
55
<button type="button" class="close" (click)="modal.hide()">&times;</button>
66
<h4 class="modal-title">{{options.title}}</h4>

0 commit comments

Comments
 (0)