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

pull/2630/head
Joaquín Sánchez 2024-02-25 20:28:38 +01:00 zatwierdzone przez GitHub
rodzic 6f20ce5bba
commit fc5d248094
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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