Skip to content

Implement responsive sidebar and mobile drawer for DeskLayout#14

Open
16navigabraham wants to merge 3 commits into
web3nova:mainfrom
jotel-dev:main
Open

Implement responsive sidebar and mobile drawer for DeskLayout#14
16navigabraham wants to merge 3 commits into
web3nova:mainfrom
jotel-dev:main

Conversation

@16navigabraham
Copy link
Copy Markdown
Contributor

Enhance the DeskLayout component with a responsive sidebar for desktop and a mobile drawer for better navigation on smaller screens. This update improves user experience by allowing seamless access to navigation links and actions across different device sizes.

Copilot AI review requested due to automatic review settings May 8, 2026 13:58
@vercel
Copy link
Copy Markdown

vercel Bot commented May 8, 2026

@16navigabraham is attempting to deploy a commit to the theweb3nova-2704's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enhances the DeskLayout shell to support responsive navigation: a persistent sidebar on desktop and a slide-in drawer with a top bar on mobile, improving navigation usability across screen sizes.

Changes:

  • Extracted navigation UI into a reusable Sidebar component.
  • Added a mobile drawer (overlay + slide-in panel) controlled by drawerOpen.
  • Added a mobile top bar with a menu button and adjusted main content padding/title visibility for responsive layouts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +145 to +147
<div className={`fixed inset-y-0 left-0 z-50 w-64 border-r border-zinc-900 flex flex-col transform transition-transform duration-200 md:hidden ${drawerOpen ? "translate-x-0" : "-translate-x-full"}`}>
<Sidebar {...sidebarProps} onClose={() => setDrawerOpen(false)} />
</div>
Comment on lines +22 to +23
<button onClick={onClose} className="text-zinc-400 hover:text-white md:hidden">
<X size={18} />

{/* Mobile top bar */}
<header className="md:hidden flex items-center gap-3 px-4 py-3 border-b border-zinc-900 bg-zinc-950">
<button onClick={() => setDrawerOpen(true)} className="text-zinc-400 hover:text-white">
Comment thread web3nova-revamp/components/Desk/DeskLayout.jsx Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants