fix(ui): account mentions not being fetched when visible (#2624)

main
Joaquín Sánchez 2024-02-25 20:28:38 +01:00 committed by GitHub
parent 6f20ce5bba
commit fc5d248094
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ const account = ref<mastodon.v1.Account | null | undefined>(props.account)
useIntersectionObserver(
hoverCard,
([{ intersectionRatio }]) => {
targetIsVisible.value = intersectionRatio <= 0.75
targetIsVisible.value = intersectionRatio > 0.1
},
)
watch(
@ -32,7 +32,7 @@ watch(
return
}
if (!newVisible)
if (!newVisible || process.test)
return
if (newHandle) {