From 7831ddaede2032f9b2b08434b35b4307e0e9bdfb Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Fri, 24 May 2024 18:24:05 +0200 Subject: [PATCH] WebAdmin events page: set fixed sizes for potentially long fields Signed-off-by: Nicola Murino --- templates/webadmin/events.html | 3 +++ templates/webadmin/iplists.html | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/webadmin/events.html b/templates/webadmin/events.html index c838b952a..98f8748d6 100644 --- a/templates/webadmin/events.html +++ b/templates/webadmin/events.html @@ -518,6 +518,7 @@

Search logs

{ data: "virtual_path", defaultContent: "", + width: '20%', render: function(data, type, row) { if (type === 'display') { if (!data){ @@ -564,6 +565,7 @@

Search logs

{ data: "status", defaultContent: "", + width: '15%', render: function(data, type, row) { if (type === 'display') { let info = ""; @@ -927,6 +929,7 @@

Search logs

{ data: "message", defaultContent: "", + width: '25%', render: function(data, type, row) { if (type === 'display') { if (data){ diff --git a/templates/webadmin/iplists.html b/templates/webadmin/iplists.html index 2c792e3e8..aa74d40cb 100644 --- a/templates/webadmin/iplists.html +++ b/templates/webadmin/iplists.html @@ -332,7 +332,10 @@

View and ma visible: true, render: function(data, type, row) { if (type === 'display') { - return escapeHTML(data); + if (data){ + return escapeHTML(data); + } + return "" } return data; }