commit f27ac67: [Minor] Set editor modal width dynamically

moisseev moiseev at mezonplus.ru
Fri Jul 17 09:49:12 UTC 2020


Author: moisseev
Date: 2020-07-16 14:33:25 +0300
URL: https://github.com/rspamd/rspamd/commit/f27ac67b8c890bb31c0d9072edb657e180c1c9c3

[Minor] Set editor modal width dynamically

---
 interface/css/rspamd.css | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

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);
 }


More information about the Commits mailing list