From 611d445d92513ee8fd6d56024e589e3521658d63 Mon Sep 17 00:00:00 2001 From: claudio Date: Mon, 11 May 2026 09:51:45 +0200 Subject: [PATCH] ui(sidebar): ellipsize nextcloud-users//files prefix in path --- frontend/src/components/sidebar/PhotoInfoPanel.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/sidebar/PhotoInfoPanel.tsx b/frontend/src/components/sidebar/PhotoInfoPanel.tsx index 5253dd0..d84a67b 100644 --- a/frontend/src/components/sidebar/PhotoInfoPanel.tsx +++ b/frontend/src/components/sidebar/PhotoInfoPanel.tsx @@ -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\//, + '…/', + ) + : '—'}

{hasGps && (