diff --git a/src/components/ThreePaneLayout.tsx b/src/components/ThreePaneLayout.tsx index 4c77362f..e11bd7f0 100644 --- a/src/components/ThreePaneLayout.tsx +++ b/src/components/ThreePaneLayout.tsx @@ -128,7 +128,10 @@ const ThreePaneLayout: React.FC = (props) => { return () => window.removeEventListener('scroll', handleScroll) }, [isMobile, isViewingArticle]) - const showMobileButtons = scrollDirection !== 'down' && !isAtTop + // Bookmark button: hide only when scrolling down + const showBookmarkButton = scrollDirection !== 'down' + // Highlights button: hide when scrolling down OR at the top + const showHighlightsButton = scrollDirection !== 'down' && !isAtTop // Lock body scroll when mobile sidebar or highlights is open useEffect(() => { @@ -250,7 +253,7 @@ const ThreePaneLayout: React.FC = (props) => { {isMobile && !props.isSidebarOpen && props.isHighlightsCollapsed && !props.showSettings && (