Truncate long names in the tables [SCI-10406] (#7248)

This commit is contained in:
ajugo 2024-03-12 14:15:58 +01:00 committed by GitHub
parent f90f06126a
commit 311bae9b58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 4 deletions

View file

@ -319,11 +319,11 @@ export default {
<span class="flex gap-2 items-center">
<div title="${this.i18n.t('experiments.duplicate_tasks.duplicating')}"
class="loading-overlay w-6 h-6 !relative" data-toggle="tooltip" data-placement="right"></div>
${name}
<span class="truncate">${name}</span>
</span>`;
}
return `<a href="${urls.show}" title="${name}" >${name}</a>`;
return `<a href="${urls.show}" title="${name}" ><span class="truncate">${name}</span></a>`;
},
statusRenderer(params) {
const { status } = params.data;

View file

@ -255,7 +255,7 @@ export default {
${!showUrl ? 'pointer-events-none text-sn-grey' : ''}"
title="${params.data.name}">
${params.data.folder ? '<i class="sn-icon mini sn-icon-mini-folder-left"></i>' : ''}
${params.data.name}
<span class="truncate">${params.data.name} </span>
</a>`;
},
openComments(_params, rows) {

View file

@ -298,7 +298,9 @@ export default {
sharedIcon = '<i class="fas fa-users"></i>';
}
return `<a class="hover:no-underline flex items-center gap-1"
title="${name}" href="${urls.show}">${sharedIcon}${name}</a>`;
title="${name}" href="${urls.show}">
<span class="truncate">${sharedIcon}${name}</span>
</a>`;
}
}
};