ui(sidebar): ellipsize nextcloud-users/<user>/files prefix in path

This commit is contained in:
claudio
2026-05-11 09:51:45 +02:00
parent f14ea69223
commit 611d445d92

View File

@@ -417,7 +417,12 @@ export function PhotoInfoPanel({ photoId, darkTheme = false }: PhotoInfoPanelPro
className="mt-0.5 break-all font-mono text-[11px] text-text"
title={photo.filepath}
>
{photo.filepath || '—'}
{photo.filepath
? photo.filepath.replace(
/^\/?nextcloud-users\/[^/]+\/files\//,
'…/',
)
: '—'}
</p>
</div>
{hasGps && (