mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +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) {
|
||||
const maxLength = 50;
|
||||
const displayPath = row.length > maxLength ? `...${row.slice(-maxLength + 3)}` : row;
|
||||
|
||||
return <TableColumnTextContainer {...props}>{displayPath}</TableColumnTextContainer>;
|
||||
return (
|
||||
<TableColumnTextContainer {...props}>
|
||||
<span>{row}</span>
|
||||
</TableColumnTextContainer>
|
||||
);
|
||||
}
|
||||
|
||||
if (row === null) {
|
||||
|
||||
Reference in New Issue
Block a user