ui(sidebar): ellipsize nextcloud-users/<user>/files prefix in path
This commit is contained in:
@@ -417,7 +417,12 @@ export function PhotoInfoPanel({ photoId, darkTheme = false }: PhotoInfoPanelPro
|
|||||||
className="mt-0.5 break-all font-mono text-[11px] text-text"
|
className="mt-0.5 break-all font-mono text-[11px] text-text"
|
||||||
title={photo.filepath}
|
title={photo.filepath}
|
||||||
>
|
>
|
||||||
{photo.filepath || '—'}
|
{photo.filepath
|
||||||
|
? photo.filepath.replace(
|
||||||
|
/^\/?nextcloud-users\/[^/]+\/files\//,
|
||||||
|
'…/',
|
||||||
|
)
|
||||||
|
: '—'}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{hasGps && (
|
{hasGps && (
|
||||||
|
|||||||
Reference in New Issue
Block a user