]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Hide extra To detail row on small screens 4254/head
authormoisseev <moiseev@mezonplus.ru>
Sun, 28 Aug 2022 08:16:01 +0000 (11:16 +0300)
committermoisseev <moiseev@mezonplus.ru>
Sun, 28 Aug 2022 08:16:01 +0000 (11:16 +0300)
interface/js/app/history.js
interface/js/app/rspamd.js

index 1812a642907863f3a6108a36e3180f997da0431e..b9b3831ea9216e8752800214c70d3e61f348465c 100644 (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,
index ecb034a863420d3e6605f5000d9ff411592bf641..c5b28968ce9bee22bce6c4274bbce485986758a1 100644 (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) {