fix: face label clipping (#30712)

This commit is contained in:
Daniel Dietzler 2026-08-11 15:46:26 +02:00 committed by GitHub
parent 927b4d0ea2
commit d1662fb2b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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>