aboutsummaryrefslogtreecommitdiffstats
path: root/interface/css/rspamd.css
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2020-07-16 14:33:25 +0300
committermoisseev <moiseev@mezonplus.ru>2020-07-16 14:33:25 +0300
commitf27ac67b8c890bb31c0d9072edb657e180c1c9c3 (patch)
tree18bd9ae26e2546a0faa90eeb38a019b0797b99b3 /interface/css/rspamd.css
parentfab37369094c37475db5e13ec1f6b6b4ba3c4fe1 (diff)
downloadrspamd-f27ac67b8c890bb31c0d9072edb657e180c1c9c3.tar.gz
rspamd-f27ac67b8c890bb31c0d9072edb657e180c1c9c3.zip
[Minor] Set editor modal width dynamically
Diffstat (limited to 'interface/css/rspamd.css')
-rw-r--r--interface/css/rspamd.css17
1 files changed, 17 insertions, 0 deletions
diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css
index 250e98b32..d6dd79b39 100644
--- a/interface/css/rspamd.css
+++ b/interface/css/rspamd.css
@@ -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);
}