diff --git a/web/src/lib/components/asset-viewer/PhotoViewer.svelte b/web/src/lib/components/asset-viewer/PhotoViewer.svelte index 06a58f999e..36f21c3411 100644 --- a/web/src/lib/components/asset-viewer/PhotoViewer.svelte +++ b/web/src/lib/components/asset-viewer/PhotoViewer.svelte @@ -64,6 +64,13 @@ // Only one face label is visible at a time (isActive guard), so a single shared width is sufficient. let labelWidth = $state(0); + $effect(() => { + // Reset label width when highlighted faces change to prevent carry-over from previous face labels + if (assetViewerManager.highlightedFaces) { + labelWidth = 0; + } + }); + const container = $derived({ width: containerWidth, height: containerHeight, @@ -280,8 +287,8 @@