mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-04-01 00:58:00 +02:00
Truncate long filenames
This commit is contained in:
parent
30b1d34333
commit
49c6aaa249
@ -46,8 +46,8 @@ export function FileList(props) {
|
||||
|
||||
return (
|
||||
<tr key={i.id}>
|
||||
<td><Link to={`/${i.id}`}>{i.id.substring(0, 4)}...</Link></td>
|
||||
<td>{meta?.name}</td>
|
||||
<td><Link to={`/${i.id}`}>{i.id.substring(0, 4)}..</Link></td>
|
||||
<td>{meta?.name ? (meta?.name.length > 20 ? `${meta?.name.substring(0, 20)}..` : meta?.name) : null}</td>
|
||||
<td>{meta?.uploaded ? moment(meta?.uploaded).fromNow() : null}</td>
|
||||
<td>{meta?.size ? FormatBytes(meta?.size, 2) : null}</td>
|
||||
<td>{bw ? FormatBytes(bw.egress, 2) : null}</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user