mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-20 21:06:54 +08:00
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:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user