feat: enhance CoursePromoBadge component with sidebar state management

- Updated CoursePromoBadge to accept a sidebarOpen prop, allowing it to render differently based on the sidebar's state.
- Implemented tooltip functionality for the collapsed state, improving user interaction and accessibility.
- Adjusted styles and structure to support both expanded and collapsed views of the badge.
This commit is contained in:
Cody Seibert
2025-12-12 15:53:11 -05:00
parent 6c7adb140d
commit a4c5567768
2 changed files with 52 additions and 3 deletions

View File

@@ -1136,7 +1136,7 @@ export function Sidebar() {
{/* Bottom Section - Running Agents / Bug Report / Settings */}
<div className="border-t border-sidebar-border bg-sidebar-accent/10 shrink-0">
{/* Course Promo Badge */}
<CoursePromoBadge />
<CoursePromoBadge sidebarOpen={sidebarOpen} />
{/* Running Agents Link */}
<div className="p-2 pb-0">
<button