fix(web): render whitespaces in file names and paths on photos and folders pages correctly (#15266)

This commit is contained in:
Ferdinand Holzer
2025-01-12 05:10:33 +01:00
committed by GitHub
parent e7abfe3067
commit 77d4eb8787
5 changed files with 12 additions and 7 deletions

View File

@@ -52,9 +52,12 @@
>
<Icon path={mdiChevronRight} class="text-gray-500 dark:text-gray-300" size={16} ariaHidden />
{#if isLastSegment}
<p class="cursor-default">{segment}</p>
<p class="cursor-default whitespace-pre-wrap">{segment}</p>
{:else}
<a class="underline hover:font-semibold" href={getLink(pathSegments.slice(0, index + 1).join('/'))}>
<a
class="underline hover:font-semibold whitespace-pre-wrap"
href={getLink(pathSegments.slice(0, index + 1).join('/'))}
>
{segment}
</a>
{/if}