Browse Source

[Minor] Set editor modal width dynamically

tags/2.6
moisseev 3 years ago
parent
commit
f27ac67b8c
1 changed files with 17 additions and 0 deletions
  1. 17
    0
      interface/css/rspamd.css

+ 17
- 0
interface/css/rspamd.css View File

@@ -534,6 +534,23 @@ td.maps-cell {
border-radius: 0 0 calc(.25rem - 1px) 0;
}

/* Dynamic width for modal */
#modalDialog {
text-align: center;
}
#modalDialog > .modal-dialog {
display: inline-block;
max-width: 100%;
text-align: left;
width: auto !important;

/* Center the modal vertically */
margin: 0 auto;
top: 50%;
transform: translate(0 -50%);
-webkit-transform: translate(0, -50%);
}

textarea#editor {
height: calc(100vh - 178px);
}

Loading…
Cancel
Save