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:
parent
d7c15163e1
commit
da32aa0a72
@ -40,7 +40,8 @@ function load()
|
|||||||
$('<td>').append($('<a>', {
|
$('<td>').append($('<a>', {
|
||||||
'class': 'file',
|
'class': 'file',
|
||||||
href: '#',
|
href: '#',
|
||||||
html: v.file
|
html: v.file,
|
||||||
|
title: v.file
|
||||||
})).appendTo($row);
|
})).appendTo($row);
|
||||||
$('<td>', { html: v.action + ' ' + v.args })
|
$('<td>', { html: v.action + ' ' + v.args })
|
||||||
.appendTo($row);
|
.appendTo($row);
|
||||||
|
@ -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
|
td.status
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user