slice list of object tags too long for videos table column

rally-management
Moe 2024-09-26 11:09:02 -07:00
parent 659c755875
commit 879b5a6bae
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ module.exports = function(s,config,lang){
ext: k.ext,
size: k.filesize,
filesize: k.filesize,
objects: k.objects,
objects: k.objects.substring(0, 510),
time: s.timeObject(k.startTime).format('YYYY-MM-DD HH:mm:ss'),
end: s.timeObject(k.endTime).format('YYYY-MM-DD HH:mm:ss')
}

View File

@ -189,7 +189,7 @@ $(document).ready(function(e){
<div>${timeAgo(file.time)}</div>
<div><small><b>${lang.Start} :</b> ${formattedTime(file.time, 'DD-MM-YYYY hh:mm:ss AA')}</small></div>
<div><small><b>${lang.End} :</b> ${formattedTime(file.end, 'DD-MM-YYYY hh:mm:ss AA')}</small></div>`,
objects: file.objects,
objects: `<div style="word-break: break-word;max-width:125px;">${file.objects}</div>`,
tags: `
${file.ext ? `<span class="badge badge-${file.ext ==='webm' ? `primary` : 'danger'}">${file.ext}</span>` : ''}
${!isLocalVideo ? `<span class="badge badge-success">${file.type}</span>` : ''}