aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/libft.js
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2024-03-17 19:50:37 +0300
committermoisseev <moiseev@mezonplus.ru>2024-03-17 19:50:37 +0300
commit74cef6faca1650a8cb783c40e97c0eae804b0d71 (patch)
treefa1e5724c3074ce794c05f2c2674063c4681a86d /interface/js/app/libft.js
parentf20bcceaf7e99712d62cae7ea8eddb37504c6796 (diff)
downloadrspamd-74cef6faca1650a8cb783c40e97c0eae804b0d71.tar.gz
rspamd-74cef6faca1650a8cb783c40e97c0eae804b0d71.zip
[Minor] Change FooTable breakpoints
to match Bootstrap 5
Diffstat (limited to 'interface/js/app/libft.js')
-rw-r--r--interface/js/app/libft.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/interface/js/app/libft.js b/interface/js/app/libft.js
index a3d655780..e45a1718d 100644
--- a/interface/js/app/libft.js
+++ b/interface/js/app/libft.js
@@ -66,12 +66,12 @@ define(["jquery", "app/common", "footable"],
}, {
name: "file",
title: "File name",
- breakpoints: "xs",
+ breakpoints: "sm",
sortValue: (val) => ((typeof val === "undefined") ? "" : val)
}, {
name: "ip",
title: "IP address",
- breakpoints: "md",
+ breakpoints: "lg",
style: {
"minWidth": "calc(14ch + 8px)",
"word-break": "break-all"
@@ -81,7 +81,7 @@ define(["jquery", "app/common", "footable"],
}, {
name: "sender_mime",
title: "[Envelope From] From",
- breakpoints: "md",
+ breakpoints: "lg",
style: {
"minWidth": 100,
"maxWidth": 200,
@@ -90,7 +90,7 @@ define(["jquery", "app/common", "footable"],
}, {
name: "rcpt_mime_short",
title: "[Envelope To] To/Cc/Bcc",
- breakpoints: "md",
+ breakpoints: "lg",
filterable: false,
classes: "d-none d-xl-table-cell",
style: {
@@ -106,7 +106,7 @@ define(["jquery", "app/common", "footable"],
}, {
name: "subject",
title: "Subject",
- breakpoints: "md",
+ breakpoints: "lg",
style: {
"word-break": "break-all",
"minWidth": 150
@@ -118,7 +118,7 @@ define(["jquery", "app/common", "footable"],
}, {
name: "passthrough_module",
title: '<div title="The module that has set the pre-result"><nobr>Pass-through</nobr> module</div>',
- breakpoints: "xs",
+ breakpoints: "sm",
style: {minWidth: 98, maxWidth: 98},
sortValue: (val) => ((typeof val === "undefined") ? "" : val)
}, {
@@ -149,13 +149,13 @@ define(["jquery", "app/common", "footable"],
}, {
name: "size",
title: "Msg size",
- breakpoints: "md",
+ breakpoints: "lg",
style: {minwidth: 50},
formatter: ui.formatBytesIEC
}, {
name: "time_real",
title: "Scan time",
- breakpoints: "md",
+ breakpoints: "lg",
style: {maxWidth: 72},
sortValue: function (val) { return Number(val); }
}, {
@@ -168,7 +168,7 @@ define(["jquery", "app/common", "footable"],
}, {
name: "user",
title: "Authenticated user",
- breakpoints: "md",
+ breakpoints: "lg",
style: {
"minWidth": 100,
"maxWidth": 130,
@@ -326,6 +326,7 @@ define(["jquery", "app/common", "footable"],
: columnsDefault.map((column) => column);
common.tables[table] = FooTable.init("#historyTable_" + table, {
+ breakpoints: common.breakpoints,
cascade: true,
columns: columns,
rows: items,