WebAdmin events page: set fixed sizes for potentially long fields

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2024-05-24 18:24:05 +02:00
parent 613f2f1c24
commit 7831ddaede
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF
2 changed files with 7 additions and 1 deletions

View file

@ -518,6 +518,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
{
data: "virtual_path",
defaultContent: "",
width: '20%',
render: function(data, type, row) {
if (type === 'display') {
if (!data){
@ -564,6 +565,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
{
data: "status",
defaultContent: "",
width: '15%',
render: function(data, type, row) {
if (type === 'display') {
let info = "";
@ -927,6 +929,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
{
data: "message",
defaultContent: "",
width: '25%',
render: function(data, type, row) {
if (type === 'display') {
if (data){

View file

@ -332,8 +332,11 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
visible: true,
render: function(data, type, row) {
if (type === 'display') {
if (data){
return escapeHTML(data);
}
return ""
}
return data;
}
},