From 8e8e81477504776683b706ba856cd74fab4aa808 Mon Sep 17 00:00:00 2001 From: nmemmert Date: Mon, 13 Jul 2026 14:40:57 -0400 Subject: [PATCH] Add tabbed layout for study page on mobile to reduce scrolling On screens below sm (640px), a horizontal tab bar replaces the stacked-scroll layout: Scripture | Notes | Refs | Words | Commentary | Script. Each tab shows only one section at a time via max-sm:hidden on the others. The chunk sidebar and split-view toggle are also hidden on mobile since Prev/Next navigation in the header is sufficient there. Desktop stacked and split-view layouts are unchanged. Co-Authored-By: Claude Sonnet 4.6 --- src/App.jsx | 51 +++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 12 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 354a545..c571571 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1277,6 +1277,7 @@ const App = () => { const [activeStudyTab, setActiveStudyTab] = useState( () => localStorage.getItem('activeStudyTab') || 'notes', ); + const [mobileStudyTab, setMobileStudyTab] = useState('scripture'); useEffect(() => { localStorage.setItem('studyLayout', studyLayout); @@ -5494,7 +5495,7 @@ const deleteProject = (id) => {
{/* Sidebar */} -