Fixed button shown even when cursor is not over the entity (e.g., a video) (#356)

fix: button shown even when cursor is not over the entity (e.g., a video)
This commit is contained in:
M G 2025-05-14 18:15:21 +03:00 committed by GitHub
commit 0a61bbba75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,6 +57,9 @@ export default () => {
if (!usingTouch || touchInteractionType !== 'classic' || modalStack.length > 0) return null
if (!hintText && !entityName) return null
// need to hide "Use" button if there isn't an entity name, but there is a hint text
if (!entityName) return null
return (
<div
className={`${styles.hint_container} interaction-hint`}