Browse Source

Merge pull request #4254 from moisseev/webui

[WebUI] Hide extra To detail row on small screens
tags/3.3
Vsevolod Stakhov 1 year ago
parent
commit
a03bd8a999
No account linked to committer's email address
2 changed files with 10 additions and 0 deletions
  1. 1
    0
      interface/js/app/history.js
  2. 9
    0
      interface/js/app/rspamd.js

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

@@ -98,6 +98,7 @@ define(["jquery", "footable"],
title: "[Envelope To] To/Cc/Bcc",
breakpoints: "xs sm md",
filterable: false,
classes: "d-none d-xl-table-cell",
style: {
"font-size": "11px",
"minWidth": 100,

+ 9
- 0
interface/js/app/rspamd.js View File

@@ -751,6 +751,15 @@ function ($, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_config,


ui.initHistoryTable = function (rspamd, data, items, table, columns, expandFirst) {
/* eslint-disable no-underscore-dangle */
FooTable.Cell.extend("collapse", function () {
// call the original method
this._super();
// Copy cell classes to detail row tr element
this._setClasses(this.$detail);
});
/* eslint-enable no-underscore-dangle */

/* eslint-disable consistent-this, no-underscore-dangle, one-var-declaration-per-line */
FooTable.actionFilter = FooTable.Filtering.extend({
construct: function (instance) {

Loading…
Cancel
Save