fix(nav): show full navigation on /games page

Fixed AppNavBar auto-detecting /games route as needing minimal mode.
The /games page should use the full navigation bar (like /create and
/guide), not the minimal arcade nav with only a hamburger menu.

Changed route detection to only apply minimal nav to /arcade/* routes,
not /games route.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock 2025-11-03 09:03:25 -06:00
parent 36bfe9c219
commit d3fe6acbb0
1 changed files with 2 additions and 2 deletions

View File

@ -567,7 +567,6 @@ function MinimalNav({
export function AppNavBar({ variant = 'full', navSlot }: AppNavBarProps) { export function AppNavBar({ variant = 'full', navSlot }: AppNavBarProps) {
const pathname = usePathname() const pathname = usePathname()
const router = useRouter() const router = useRouter()
const isGamePage = pathname?.startsWith('/games')
const isArcadePage = pathname?.startsWith('/arcade') const isArcadePage = pathname?.startsWith('/arcade')
const { isFullscreen, toggleFullscreen, exitFullscreen } = useFullscreen() const { isFullscreen, toggleFullscreen, exitFullscreen } = useFullscreen()
@ -583,7 +582,8 @@ export function AppNavBar({ variant = 'full', navSlot }: AppNavBarProps) {
const showBranding = !homeHero || !homeHero.isHeroVisible const showBranding = !homeHero || !homeHero.isHeroVisible
// Auto-detect variant based on context // Auto-detect variant based on context
const actualVariant = variant === 'full' && (isGamePage || isArcadePage) ? 'minimal' : variant // Only arcade pages (not /games) should use minimal nav
const actualVariant = variant === 'full' && isArcadePage ? 'minimal' : variant
// Mini nav for games/arcade (both fullscreen and non-fullscreen) // Mini nav for games/arcade (both fullscreen and non-fullscreen)
if (actualVariant === 'minimal') { if (actualVariant === 'minimal') {