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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 12 additions and 7 deletions

View file

@ -364,7 +364,7 @@
<div><Icon path={mdiImageOutline} size="24" /></div>
<div>
<p class="break-all flex place-items-center gap-2">
<p class="break-all flex place-items-center gap-2 whitespace-pre-wrap">
{asset.originalFileName}
{#if isOwner}
<CircleIconButton
@ -381,7 +381,7 @@
class="text-xs opacity-50 break-all pb-2 hover:dark:text-immich-dark-primary hover:text-immich-primary"
transition:slide={{ duration: 250 }}
>
<a href={getAssetFolderHref(asset)} title={$t('go_to_folder')}>
<a href={getAssetFolderHref(asset)} title={$t('go_to_folder')} class="whitespace-pre-wrap">
{asset.originalPath}
</a>
</p>