mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user