Set maximum width for File column

Add title attribute to display possibly truncated File as tooltip.

Will this work well for mobile/touchscreen use?
This commit is contained in:
df 2020-11-09 13:53:03 +00:00
parent d7c15163e1
commit da32aa0a72
2 changed files with 9 additions and 1 deletions

View File

@ -40,7 +40,8 @@ function load()
$('<td>').append($('<a>', {
'class': 'file',
href: '#',
html: v.file
html: v.file,
title: v.file
})).appendTo($row);
$('<td>', { html: v.action + ' ' + v.args })
.appendTo($row);

View File

@ -1,3 +1,10 @@
/* constrain File column width */
td:nth-child(3), th:nth-child(3)
{
max-width: 50ch;
overflow: hidden;
text-overflow: ellipsis;
}
td.status
{