From fc5d248094899945f769a4c0c3f20894e7439040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez?= Date: Sun, 25 Feb 2024 20:28:38 +0100 Subject: [PATCH] fix(ui): account mentions not being fetched when visible (#2624) --- components/account/AccountHoverWrapper.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/account/AccountHoverWrapper.vue b/components/account/AccountHoverWrapper.vue index 3d66fe8a..a6c8d815 100644 --- a/components/account/AccountHoverWrapper.vue +++ b/components/account/AccountHoverWrapper.vue @@ -21,7 +21,7 @@ const account = ref(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) {