fix: face label clipping

This commit is contained in:
Daniel Dietzler 2026-08-11 14:53:30 +02:00
parent b4c27ee0b4
commit e83819bb8a
No known key found for this signature in database
GPG key ID: A1C0B97CD8E18DFF

View file

@ -273,7 +273,9 @@
<div
aria-hidden="true"
class="absolute rounded-sm bg-white/90 px-2 py-1 text-sm font-medium whitespace-nowrap text-black shadow-lg"
style="top: {boundingbox.height + 4}px; right: 0;"
style="top: {boundingbox.height + 4}px; right: {assetViewerManager.imgRef
? Math.max(boundingbox.left + boundingbox.width - assetViewerManager.imgRef.clientWidth, 0)
: 0}px;"
>
{boundingbox.name}
</div>