chnage layout for agorithm and add toggle for right and left side#8
Conversation
- Added 'Algorithms' navigation item in header - Positioned between 'Interview Question' and 'Blog' - Links to /docs/Algorithms/introduction - Makes algorithm practice easily accessible from top nav
- Created SidebarToggle component with left/right toggle buttons - Integrated into AlgorithmProblem component - Floating buttons on left and right edges - Click to hide/show sidebars for more screen space - Smooth transitions with visual feedback - Positioned at top-left and top-right - Perfect for focusing on algorithm problems
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughAdds a new "Algorithms" navigation menu item to the Docusaurus navbar configuration, creates a new SidebarToggle component that provides fixed-position buttons to toggle left and right sidebar visibility via DOM manipulation and CSS variables, and integrates the toggle component into the AlgorithmProblem view. Changes
Sequence DiagramsequenceDiagram
actor User
participant SidebarToggle
participant State as React State
participant Effect as useEffect
participant DOM
User->>SidebarToggle: Click toggle button
SidebarToggle->>State: Update hideLeftSidebar/hideRightSidebar
State->>Effect: Trigger effect
rect rgb(230, 245, 255)
note over Effect,DOM: DOM Manipulation Phase
Effect->>DOM: Query sidebar elements
Effect->>DOM: Apply display:none/block
Effect->>DOM: Update --doc-sidebar-width CSS var
end
DOM-->>User: Sidebars shown/hidden
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit