Browse Source

[WebUI] Tweak history table layout

tags/3.3
moisseev 1 year ago
parent
commit
e4446ad2c2
2 changed files with 10 additions and 1 deletions
  1. 6
    0
      interface/css/rspamd.css
  2. 4
    1
      interface/js/app/history.js

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

@@ -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;

+ 4
- 1
interface/js/app/history.js View File

@@ -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",

Loading…
Cancel
Save