Skip to content
Snippets Groups Projects
Commit 69cb71b1 authored by timothycarambat's avatar timothycarambat
Browse files

patch cached tag overflow of filename text

patch parseChunkHeader bug
parent c341f7a2
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ export default function FileRow({ item, selected, toggleSelection }) { ...@@ -32,7 +32,7 @@ export default function FileRow({ item, selected, toggleSelection }) {
weight="fill" weight="fill"
/> />
<p className="whitespace-nowrap overflow-hidden text-ellipsis"> <p className="whitespace-nowrap overflow-hidden text-ellipsis">
{middleTruncate(item.title, 60)} {middleTruncate(item.title, 55)}
</p> </p>
</div> </div>
<div className="col-span-2 flex justify-end items-center"> <div className="col-span-2 flex justify-end items-center">
......
...@@ -222,14 +222,16 @@ function parseChunkSource({ title = "", chunks = [] }) { ...@@ -222,14 +222,16 @@ function parseChunkSource({ title = "", chunks = [] }) {
if ( if (
!chunks.length || !chunks.length ||
(!chunks[0].chunkSource.startsWith("link://") && (!chunks[0].chunkSource?.startsWith("link://") &&
!chunks[0].chunkSource.startsWith("confluence://")) !chunks[0].chunkSource?.startsWith("confluence://") &&
!chunks[0].chunkSource?.startsWith("github://"))
) )
return nullResponse; return nullResponse;
try { try {
const url = new URL( const url = new URL(
chunks[0].chunkSource.split("link://")[1] || 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 text = url.host + url.pathname;
let icon = "link"; let icon = "link";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment