Merge pull request #11520 from icsy7867/main

Added decodeURIcomponent function to several locations.
This commit is contained in:
Timothy Jaeryang Baek 2025-03-11 10:33:41 +00:00 committed by GitHub
commit 0e7164b4f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 8 deletions

View File

@ -210,7 +210,7 @@
{/if} {/if}
<div class="line-clamp-1"> <div class="line-clamp-1">
{item?.name} {decodeURIComponent(item?.name)}
</div> </div>
</div> </div>

View File

@ -117,7 +117,7 @@
<div <div
class="flex-1 mx-1 truncate text-black/60 hover:text-black dark:text-white/60 dark:hover:text-white transition" class="flex-1 mx-1 truncate text-black/60 hover:text-black dark:text-white/60 dark:hover:text-white transition"
> >
{citation.source.name} {decodeURIComponent(citation.source.name)}
</div> </div>
</button> </button>
{/each} {/each}
@ -157,7 +157,7 @@
</div> </div>
{/if} {/if}
<div class="flex-1 mx-1 truncate"> <div class="flex-1 mx-1 truncate">
{citation.source.name} {decodeURIComponent(citation.source.name)}
</div> </div>
</button> </button>
{/each} {/each}
@ -194,7 +194,7 @@
</div> </div>
{/if} {/if}
<div class="flex-1 mx-1 truncate"> <div class="flex-1 mx-1 truncate">
{citation.source.name} {decodeURIComponent(citation.source.name)}
</div> </div>
</button> </button>
{/each} {/each}

View File

@ -98,7 +98,7 @@
: `#`} : `#`}
target="_blank" target="_blank"
> >
{document?.metadata?.name ?? document.source.name} {decodeURIComponent(document?.metadata?.name) ?? decodeURIComponent(document.source.name)}
</a> </a>
{#if document?.metadata?.page} {#if document?.metadata?.page}
<span class="text-xs text-gray-500 dark:text-gray-400"> <span class="text-xs text-gray-500 dark:text-gray-400">

View File

@ -82,7 +82,7 @@
{#if !small} {#if !small}
<div class="flex flex-col justify-center -space-y-0.5 px-2.5 w-full"> <div class="flex flex-col justify-center -space-y-0.5 px-2.5 w-full">
<div class=" dark:text-gray-100 text-sm font-medium line-clamp-1 mb-1"> <div class=" dark:text-gray-100 text-sm font-medium line-clamp-1 mb-1">
{name} {decodeURIComponent(name)}
</div> </div>
<div class=" flex justify-between text-gray-500 text-xs line-clamp-1"> <div class=" flex justify-between text-gray-500 text-xs line-clamp-1">
@ -101,7 +101,7 @@
</div> </div>
</div> </div>
{:else} {:else}
<Tooltip content={name} className="flex flex-col w-full" placement="top-start"> <Tooltip content={decodeURIComponent(name)} className="flex flex-col w-full" placement="top-start">
<div class="flex flex-col justify-center -space-y-0.5 px-2.5 w-full"> <div class="flex flex-col justify-center -space-y-0.5 px-2.5 w-full">
<div class=" dark:text-gray-100 text-sm flex justify-between items-center"> <div class=" dark:text-gray-100 text-sm flex justify-between items-center">
{#if loading} {#if loading}
@ -109,7 +109,7 @@
<Spinner className="size-4" /> <Spinner className="size-4" />
</div> </div>
{/if} {/if}
<div class="font-medium line-clamp-1 flex-1">{name}</div> <div class="font-medium line-clamp-1 flex-1">{decodeURIComponent(name)}</div>
<div class="text-gray-500 text-xs capitalize shrink-0">{formatFileSize(size)}</div> <div class="text-gray-500 text-xs capitalize shrink-0">{formatFileSize(size)}</div>
</div> </div>
</div> </div>