]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Save some history table space 1577/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 4 Apr 2017 15:20:32 +0000 (18:20 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 4 Apr 2017 15:20:32 +0000 (18:20 +0300)
interface/css/rspamd.css
interface/js/app/history.js

index c867279608069697181808a31771402141f650f6..3a4dd26c089cfe6e9a9570b2ba6f82eb8e7a5c8b 100644 (file)
@@ -152,6 +152,14 @@ input.action-scores {
                background-image:url('../img/desc.png');
                }
 
+#historyTable > tbody > tr > td,
+#historyTable > thead > tr > th {
+    padding: 4px;
+}
+#historyTable > thead > tr > th {
+    padding-right: 20px;
+}
+
 .btn-upload-trigger {
        position:relative;
        z-index:1;
index c3f7ae352ed88522480269a3388ef14f6f478afa..4c1e75ce8496a65e9c195f4970e12b29b2b67a80 100644 (file)
@@ -93,7 +93,7 @@ function($, _, Humanize) {
                     "sortValue": item.unix_time
                 }
             };
-            var scan_time = item.time_real.toFixed(3) + '/' +
+            var scan_time = item.time_real.toFixed(3) + ' / ' +
                 item.time_virtual.toFixed(3);
             item.scan_time = {
                 "options": {
@@ -140,7 +140,7 @@ function($, _, Humanize) {
                 "title": "ID",
                 "style": {
                     "font-size": "11px",
-                    "width": 200,
+                    "minWidth": 130,
                     "maxWidth": 200,
                     "overflow": "hidden",
                     "textOverflow": "ellipsis",
@@ -153,7 +153,7 @@ function($, _, Humanize) {
                 "breakpoints": "xs sm md",
                 "style": {
                     "font-size": "11px",
-                    "minWidth": 150
+                    "minWidth": 88
                 }
             }, {
                 "name": "sender_mime",
@@ -187,8 +187,7 @@ function($, _, Humanize) {
                 "title": "Action",
                 "style": {
                     "font-size": "11px",
-                    "width": 110,
-                    "maxWidth": 110
+                    "minwidth": 82
                 }
             }, {
                 "name": "score",
@@ -209,12 +208,11 @@ function($, _, Humanize) {
                 }
             }, {
                 "name": "size",
-                "title": "Message size",
+                "title": "Msg size",
                 "breakpoints": "xs sm md",
                 "style": {
                     "font-size": "11px",
-                    "width": 90,
-                    "maxWidth": 110
+                    "minwidth": 50,
                 },
                 "formatter": Humanize.compactInteger
             }, {
@@ -223,7 +221,7 @@ function($, _, Humanize) {
                 "breakpoints": "xs sm md",
                 "style": {
                     "font-size": "11px",
-                    "maxWidth": 120
+                    "maxWidth": 72
                 },
                 "sortValue": function(val) { return Number(val.options.sortValue); }
             }, {
@@ -241,7 +239,7 @@ function($, _, Humanize) {
                 "breakpoints": "xs sm md",
                 "style": {
                     "font-size": "11px",
-                    "minWidth": 150
+                    "minWidth": 100
                 }
             }];
     }