mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
remove truncation from path column (#1351)
This commit is contained in:
@@ -11,10 +11,11 @@ export const PathColumn = (props: ItemTableListInnerColumn) => {
|
|||||||
];
|
];
|
||||||
|
|
||||||
if (typeof row === 'string' && row) {
|
if (typeof row === 'string' && row) {
|
||||||
const maxLength = 50;
|
return (
|
||||||
const displayPath = row.length > maxLength ? `...${row.slice(-maxLength + 3)}` : row;
|
<TableColumnTextContainer {...props}>
|
||||||
|
<span>{row}</span>
|
||||||
return <TableColumnTextContainer {...props}>{displayPath}</TableColumnTextContainer>;
|
</TableColumnTextContainer>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (row === null) {
|
if (row === null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user