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

#historyTable_history > thead > tr > th { #historyTable_history > thead > tr > th {
padding-right: 20px; 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 { #history_page_size {
width: 6em !important; width: 6em !important;

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

title: "Score", title: "Score",
style: { style: {
"font-size": "11px", "font-size": "11px",
"maxWidth": 110
"maxWidth": 110,
"text-align": "right",
"white-space": "nowrap"
}, },
sortValue: function (val) { return Number(val.options.sortValue); } sortValue: function (val) { return Number(val.options.sortValue); }
}, { }, {
}, },
sortValue: function (val) { return Number(val); } sortValue: function (val) { return Number(val); }
}, { }, {
classes: "history-col-time",
sorted: true, sorted: true,
direction: "DESC", direction: "DESC",
name: "time", name: "time",

Loading…
Cancel
Save