Skip to content

feat: improve mobile navigation#9

Open
zeno-codebot wants to merge 2 commits into
cbulock:mainfrom
zeno-codebot:feat/mobile-nav-drawer
Open

feat: improve mobile navigation#9
zeno-codebot wants to merge 2 commits into
cbulock:mainfrom
zeno-codebot:feat/mobile-nav-drawer

Conversation

@zeno-codebot

Copy link
Copy Markdown
Collaborator

Summary

  • replace the stacked mobile sidebar with a compact header and slide-out drawer
  • add quick mobile nav chips while preserving the existing grouped desktop navigation
  • close the drawer automatically after route changes and add a backdrop for dismissal

Testing

  • npm run build

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Replaces the always-visible stacked sidebar with a responsive layout: on mobile, a sticky header with a hamburger toggle opens a slide-out drawer that includes quick nav chips plus the existing grouped navigation, while desktop keeps the original sidebar grouping.

Changes:

  • Wrap the nav in an app-nav-shell with a new mobile header containing the brand and an aria-controlled toggle button.
  • Add a drawer-style aside (with backdrop) that shows quick nav chips (allItems) plus the grouped navigation, and auto-closes by watching route.fullPath.
  • Add a @media (max-width: 960px) block with backdrop, drawer animation, sticky bar, and chip styles.

aria-label="Open navigation menu"
@click="mobileMenuOpen = !mobileMenuOpen"
>
<AppIcon :name="mobileMenuOpen ? 'pi-times' : 'pi-bars'" :size="18" />
Comment thread frontend/src/components/NavBar.vue Outdated
class="app-nav-mobile-toggle"
:aria-expanded="mobileMenuOpen ? 'true' : 'false'"
aria-controls="app-mobile-nav-drawer"
aria-label="Open navigation menu"
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