Course Information
diff --git a/src/components/content/courses/CourseHeader.js b/src/components/content/courses/CourseHeader.js
index c841b5e..4ea72c0 100644
--- a/src/components/content/courses/CourseHeader.js
+++ b/src/components/content/courses/CourseHeader.js
@@ -39,7 +39,7 @@ const CourseHeader = ({
e.stopPropagation();
router.push('/');
}}
- className="mr-2 p-button-rounded p-button-text text-gray-300 hover:text-white"
+ className="mr-4 p-button-rounded p-button-text text-gray-300 hover:text-white"
rounded={true}
text={true}
aria-label="Go back to home"
diff --git a/src/components/content/courses/CourseSidebar.js b/src/components/content/courses/CourseSidebar.js
index 209856d..7ba936f 100644
--- a/src/components/content/courses/CourseSidebar.js
+++ b/src/components/content/courses/CourseSidebar.js
@@ -1,7 +1,5 @@
import React, { useState, useEffect } from 'react';
import { Tag } from 'primereact/tag';
-import { Button } from 'primereact/button';
-import { Sidebar } from 'primereact/sidebar';
import Image from 'next/image';
import { useImageProxy } from '@/hooks/useImageProxy';
import GenericButton from '@/components/buttons/GenericButton';
@@ -109,39 +107,6 @@ const CourseSidebar = ({
);
- // Global toggle button container - only shown if hideToggleButton is false
- const SidebarToggle = () => {
- if (visible || hideToggleButton || isMobileView) return null;
-
- return (
-
-
-
- );
- };
-
// Mobile content tab
const MobileLessonsTab = () => (
@@ -160,9 +125,6 @@ const CourseSidebar = ({
return (
<>
- {/* Unified button approach for desktop - only if not hidden */}
- {!hideToggleButton && }
-
{/* Mobile view - direct content instead of sidebar */}
{isMobileView && visible && (
diff --git a/src/components/menutab/MenuTab.js b/src/components/menutab/MenuTab.js
index 5d7527e..1fe98f0 100644
--- a/src/components/menutab/MenuTab.js
+++ b/src/components/menutab/MenuTab.js
@@ -32,17 +32,11 @@ export default function MenuTab({ items, activeIndex, onTabChange, sidebarVisibl
: "pi pi-chevron-left"}
onClick={onToggleSidebar}
outlined={true}
- style={{
- width: '2.5rem',
- height: '2.5rem',
- backgroundColor: 'transparent',
- border: 'none',
- fontWeight: 'bold'
- }}
+ rounded={true}
+ size="small"
tooltip={sidebarVisible ? "Hide lessons" : "Show lessons"}
tooltipOptions={{ position: 'bottom' }}
aria-label="Toggle course lessons"
- size="small"
/>
)}