From 8342adda11ee515732953f8501201ac211253d29 Mon Sep 17 00:00:00 2001 From: Johannes Horn Date: Mon, 16 Nov 2026 20:27:31 +0100 Subject: [PATCH] fix: reveal tall home page sections on short screens --- frontend/app/hooks/useInView.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/app/hooks/useInView.ts b/frontend/app/hooks/useInView.ts index a8bd24cd..68462cf6 100644 --- a/frontend/app/hooks/useInView.ts +++ b/frontend/app/hooks/useInView.ts @@ -21,7 +21,10 @@ function useInView() { observer.disconnect(); } }, - { threshold: 0.15 }, + // In view when the element is 10% into the screen. A threshold would not + // work for tall elements: it is a share of the element, and that share + // may never fit on the screen + { rootMargin: "0px 0px -10% 0px" }, ); observer.observe(element);