diff --git a/web/src/lib/components/asset-viewer/PhotoViewer.svelte b/web/src/lib/components/asset-viewer/PhotoViewer.svelte index bdd02d7ac..468782ede 100644 --- a/web/src/lib/components/asset-viewer/PhotoViewer.svelte +++ b/web/src/lib/components/asset-viewer/PhotoViewer.svelte @@ -61,6 +61,7 @@ let containerWidth = $state(0); let containerHeight = $state(0); + const faceLabelOffset = 32; const container = $derived({ width: containerWidth, @@ -273,11 +274,14 @@ onpointerleave={() => assetViewerManager.clearHighlightedFaces()} > {#if isActive && boundingbox.name} + {@const labelAbove = + boundingbox.top + boundingbox.height + faceLabelOffset > overlaySize.height && + boundingbox.top >= faceLabelOffset}