From 12d9832c7399576661d26e2118ae36ec4ae0d815 Mon Sep 17 00:00:00 2001 From: Andres Date: Thu, 10 Apr 2025 00:48:51 +0200 Subject: [PATCH] fix mobile navbar --- src/app/_components/header.tsx | 3 +- src/components/ui/navigation-menu.tsx | 56 +++++++++++++-------------- 2 files changed, 29 insertions(+), 30 deletions(-) diff --git a/src/app/_components/header.tsx b/src/app/_components/header.tsx index fc95681..484e98a 100644 --- a/src/app/_components/header.tsx +++ b/src/app/_components/header.tsx @@ -72,10 +72,9 @@ export function Header({ - + {/**/} {menuItems diff --git a/src/components/ui/navigation-menu.tsx b/src/components/ui/navigation-menu.tsx index 1199945..298028a 100644 --- a/src/components/ui/navigation-menu.tsx +++ b/src/components/ui/navigation-menu.tsx @@ -1,9 +1,9 @@ -import * as React from "react" -import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu" -import { cva } from "class-variance-authority" -import { ChevronDownIcon } from "lucide-react" +import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu' +import { cva } from 'class-variance-authority' +import { ChevronDownIcon } from 'lucide-react' +import type * as React from 'react' -import { cn } from "@/lib/utils" +import { cn } from '@/lib/utils' function NavigationMenu({ className, @@ -15,10 +15,10 @@ function NavigationMenu({ }) { return ( ) { return ( ) { return ( ) } const navigationMenuTriggerStyle = cva( - "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1" + 'group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 font-medium text-sm outline-none transition-[color,box-shadow] hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:outline-1 focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:hover:bg-accent' ) function NavigationMenuTrigger({ @@ -69,14 +69,14 @@ function NavigationMenuTrigger({ }: React.ComponentProps) { return ( - {children}{" "} + {children}{' '} ) @@ -88,10 +88,10 @@ function NavigationMenuContent({ }: React.ComponentProps) { return ( ) { return ( ) { return ( -
+
) }