From aadbf2084f959a009282f57574de96715a2c0fed Mon Sep 17 00:00:00 2001 From: Gigi Date: Mon, 13 Oct 2025 23:57:06 +0200 Subject: [PATCH] fix(mobile): hide sidebar/highlights toggle buttons on settings, explore, and me pages - Only show mobile floating buttons when viewing article content - Hide buttons on settings/explore/me views to avoid UI clutter - Update conditional rendering logic in ThreePaneLayout --- src/components/ThreePaneLayout.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/ThreePaneLayout.tsx b/src/components/ThreePaneLayout.tsx index 1743fcc8..8f912cf5 100644 --- a/src/components/ThreePaneLayout.tsx +++ b/src/components/ThreePaneLayout.tsx @@ -221,8 +221,8 @@ const ThreePaneLayout: React.FC = (props) => { return ( <> - {/* Mobile bookmark button - only show when viewing article */} - {isMobile && !props.isSidebarOpen && props.isHighlightsCollapsed && ( + {/* Mobile bookmark button - only show when viewing article (not on settings/explore/me) */} + {isMobile && !props.isSidebarOpen && props.isHighlightsCollapsed && !props.showSettings && !props.showExplore && !props.showMe && ( )} - {/* Mobile highlights button - only show when viewing article */} - {isMobile && !props.isSidebarOpen && props.isHighlightsCollapsed && ( + {/* Mobile highlights button - only show when viewing article (not on settings/explore/me) */} + {isMobile && !props.isSidebarOpen && props.isHighlightsCollapsed && !props.showSettings && !props.showExplore && !props.showMe && (