Fix: Some bugs (#12441)

### What problem does this PR solve?

Fix: Some bugs
- In a production environment, a second-level page refresh results in a
white screen.
- The knowledge graph cannot be opened.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2026-01-05 15:28:57 +08:00
committed by GitHub
parent 4e9407b4ae
commit 00f8a80ca4
11 changed files with 39 additions and 11 deletions

View File

@ -12,7 +12,7 @@ export default ({ size, name, create_date }: Props) => {
const dateStr = formatDate(create_date);
return (
<div>
<h2 className="text-[16px]">{name}</h2>
<h2 className="text-[16px] truncate">{name}</h2>
<div className="text-text-secondary text-[12px] pt-[5px]">
Size{sizeName} Uploaded Time{dateStr}
</div>

View File

@ -69,7 +69,7 @@ const BreadcrumbPage = React.forwardRef<
role="link"
aria-disabled="true"
aria-current="page"
className={cn('font-normal text-foreground', className)}
className={cn('font-normal text-foreground truncate max-w-40', className)}
{...props}
/>
));