Feat: Adjust the operation cell of the table on the file management page and dataset page #3221. (#7526)

### What problem does this PR solve?

Feat: Adjust the operation cell of the table on the file management page
and dataset page #3221.
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-05-08 15:25:26 +08:00
committed by GitHub
parent 9d3dd13fef
commit 1657755b5d
18 changed files with 163 additions and 115 deletions

View File

@ -11,6 +11,7 @@ interface IProps extends React.PropsWithChildren {
documentName: string;
documentId?: string;
prefix?: string;
className?: string;
}
const NewDocumentLink = ({
@ -21,6 +22,7 @@ const NewDocumentLink = ({
documentId,
documentName,
prefix = 'file',
className,
}: IProps) => {
let nextLink = link;
const extension = getExtension(documentName);
@ -38,7 +40,8 @@ const NewDocumentLink = ({
}
href={nextLink}
rel="noreferrer"
style={{ color, wordBreak: 'break-all' }}
style={{ color: className ? '' : color, wordBreak: 'break-all' }}
className={className}
>
{children}
</a>