mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-17 18:18:11 +00:00
patch cached tag overflow of filename text
patch parseChunkHeader bug
This commit is contained in:
parent
c341f7a298
commit
69cb71b1fc
2 changed files with 6 additions and 4 deletions
|
@ -32,7 +32,7 @@ export default function FileRow({ item, selected, toggleSelection }) {
|
|||
weight="fill"
|
||||
/>
|
||||
<p className="whitespace-nowrap overflow-hidden text-ellipsis">
|
||||
{middleTruncate(item.title, 60)}
|
||||
{middleTruncate(item.title, 55)}
|
||||
</p>
|
||||
</div>
|
||||
<div className="col-span-2 flex justify-end items-center">
|
||||
|
|
|
@ -222,14 +222,16 @@ function parseChunkSource({ title = "", chunks = [] }) {
|
|||
|
||||
if (
|
||||
!chunks.length ||
|
||||
(!chunks[0].chunkSource.startsWith("link://") &&
|
||||
!chunks[0].chunkSource.startsWith("confluence://"))
|
||||
(!chunks[0].chunkSource?.startsWith("link://") &&
|
||||
!chunks[0].chunkSource?.startsWith("confluence://") &&
|
||||
!chunks[0].chunkSource?.startsWith("github://"))
|
||||
)
|
||||
return nullResponse;
|
||||
try {
|
||||
const url = new URL(
|
||||
chunks[0].chunkSource.split("link://")[1] ||
|
||||
chunks[0].chunkSource.split("confluence://")[1]
|
||||
chunks[0].chunkSource.split("confluence://")[1] ||
|
||||
chunks[0].chunkSource.split("github://")[1]
|
||||
);
|
||||
let text = url.host + url.pathname;
|
||||
let icon = "link";
|
||||
|
|
Loading…
Add table
Reference in a new issue