From 740437d9f6de570d4b81e67553d997ff1373fbba Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 3 Aug 2025 14:39:28 +0200 Subject: [PATCH] Show scroll top button regardless of scroll position if there are new posts and auto-loading is disabled --- packages/pl-fe/src/components/scroll-top-button.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pl-fe/src/components/scroll-top-button.tsx b/packages/pl-fe/src/components/scroll-top-button.tsx index 707cf3be8..78b0c2d9b 100644 --- a/packages/pl-fe/src/components/scroll-top-button.tsx +++ b/packages/pl-fe/src/components/scroll-top-button.tsx @@ -36,7 +36,7 @@ const ScrollTopButton: React.FC = ({ // Whether we are scrolled above the `autoloadThreshold`. const [scrolledTop, setScrolledTop] = useState(false); - const visible = count > 0 && scrolled; + const visible = count > 0 && (!autoloadTimelines || scrolled); /** Number of pixels scrolled down from the top of the page. */ const getScrollTop = (): number => (document.scrollingElement || document.documentElement).scrollTop;