From 113fb787d5e971879d971ec702080768ad4b4a18 Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Mon, 12 May 2025 14:12:19 -0500 Subject: [PATCH] fix spacing and animation again whoops --- src/pages/course/[slug]/index.js | 46 ++++++++++++++++++++++++++++---- 1 file changed, 41 insertions(+), 5 deletions(-) diff --git a/src/pages/course/[slug]/index.js b/src/pages/course/[slug]/index.js index b21bc17..3fca943 100644 --- a/src/pages/course/[slug]/index.js +++ b/src/pages/course/[slug]/index.js @@ -278,11 +278,23 @@ const Course = () => { {/* Course Sidebar - positioned absolutely on desktop when visible */} - {!isMobileView && ( -
{ hideToggleButton={true} />
+ ) : ( +
+ { + setSidebarVisible(false); + toggleTab(getActiveTabIndex()); + }} + sidebarVisible={sidebarVisible} + setSidebarVisible={setSidebarVisible} + hideToggleButton={true} + /> +
)}