patch cached tag overflow of filename text
patch parseChunkHeader bug
This commit is contained in:
parent
c341f7a298
commit
69cb71b1fc
@ -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…
Reference in New Issue
Block a user