aboutsummaryrefslogtreecommitdiffstats
path: root/interface
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2022-06-29 17:52:57 +0300
committermoisseev <moiseev@mezonplus.ru>2022-06-29 17:54:54 +0300
commite4446ad2c2a75154025d7d96a9195aa8c7108725 (patch)
tree32f1aa17e4d0b11a6b6a1daae6af7f605234385e /interface
parent508f8da2f6597aa76d779bd0f66f0bc4205c9c5e (diff)
downloadrspamd-e4446ad2c2a75154025d7d96a9195aa8c7108725.tar.gz
rspamd-e4446ad2c2a75154025d7d96a9195aa8c7108725.zip
[WebUI] Tweak history table layout
Diffstat (limited to 'interface')
-rw-r--r--interface/css/rspamd.css6
-rw-r--r--interface/js/app/history.js5
2 files changed, 10 insertions, 1 deletions
diff --git a/interface/css/rspamd.css b/interface/css/rspamd.css
index 4c279cda7..9e09b13a5 100644
--- a/interface/css/rspamd.css
+++ b/interface/css/rspamd.css
@@ -371,6 +371,12 @@ table#symbolsTable input[type="number"] {
#historyTable_history > thead > tr > th {
padding-right: 20px;
}
+@media (min-width: 576px) and (max-width: 1199px) {
+ .history-col-time {
+ /* Avoid taking multiple lines in every row when one of rows has long ID */
+ white-space: nowrap;
+ }
+}
#history_page_size {
width: 6em !important;
diff --git a/interface/js/app/history.js b/interface/js/app/history.js
index e6573cd1e..7409be597 100644
--- a/interface/js/app/history.js
+++ b/interface/js/app/history.js
@@ -132,7 +132,9 @@ define(["jquery", "footable"],
title: "Score",
style: {
"font-size": "11px",
- "maxWidth": 110
+ "maxWidth": 110,
+ "text-align": "right",
+ "white-space": "nowrap"
},
sortValue: function (val) { return Number(val.options.sortValue); }
}, {
@@ -172,6 +174,7 @@ define(["jquery", "footable"],
},
sortValue: function (val) { return Number(val); }
}, {
+ classes: "history-col-time",
sorted: true,
direction: "DESC",
name: "time",