From 6119b478206c664926f9279790be638b4605bb49 Mon Sep 17 00:00:00 2001 From: Bojan Mojsilovic Date: Mon, 8 Jan 2024 14:38:42 +0100 Subject: [PATCH] Fix scrolling calculation on thread view --- src/pages/Thread.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/Thread.tsx b/src/pages/Thread.tsx index 079f160..34c96a8 100644 --- a/src/pages/Thread.tsx +++ b/src/pages/Thread.tsx @@ -111,6 +111,10 @@ const Thread: Component = () => { setTimeout(() => { if (!repliesHolder) return; + if (parentNotes().length === 0) { + return; + } + const rect = pn.getBoundingClientRect(); const vh = window.innerHeight;