@@ -73,8 +73,13 @@ export function Navigation({ inline = false }: NavigationProps) {
7373 return (
7474 < nav
7575 ref = { inlineNavContainerRef }
76- className = "flex flex-nowrap items-center justify-center gap-2 sm:gap-4 overflow-x-auto scroll-smooth"
76+ className = "flex flex-nowrap items-center justify-center gap-2 sm:gap-3 md:gap- 4 overflow-x-auto scroll-smooth pb-2 -mb-2 w-full "
7777 aria-label = "Main navigation"
78+ style = { {
79+ scrollbarWidth : 'none' ,
80+ msOverflowStyle : 'none' ,
81+ WebkitOverflowScrolling : 'touch'
82+ } }
7883 >
7984 { navLinks . map ( ( link : { path : string ; label : string } , index : number ) => {
8085 const isActive = location . pathname === link . path ;
@@ -83,7 +88,7 @@ export function Navigation({ inline = false }: NavigationProps) {
8388 key = { link . path }
8489 ref = { ( el ) => { tabRefs . current [ index ] = el ; } }
8590 to = { link . path }
86- className = "relative px-3 sm:px-6 py-3 transition-colors group rounded-lg flex-shrink-0 text-center whitespace-nowrap"
91+ className = "relative px-3 sm:px-5 md:px- 6 py-2.5 sm:py- 3 transition-colors group rounded-lg flex-shrink-0 text-center whitespace-nowrap min-h-[44px] flex items-center justify-center "
8792 >
8893 { isActive && (
8994 < motion . div
@@ -95,8 +100,8 @@ export function Navigation({ inline = false }: NavigationProps) {
95100 < span
96101 className = { `relative z-10 font-medium transition-all ${
97102 isActive
98- ? 'text-gray-900 font-semibold opacity-100 text-xl'
99- : 'text-gray-600 opacity-50 group-hover:text-gray-900 group-hover:opacity-100 text-base'
103+ ? 'text-gray-900 font-semibold opacity-100 text-lg sm:text- xl'
104+ : 'text-gray-600 opacity-50 group-hover:text-gray-900 group-hover:opacity-100 text-sm sm:text- base'
100105 } `}
101106 >
102107 { link . label }
@@ -129,6 +134,10 @@ export function Navigation({ inline = false }: NavigationProps) {
129134 < div
130135 ref = { topNavContainerRef }
131136 className = "hidden lg:flex items-center justify-center gap-2 xl:gap-4 flex-1 flex-nowrap overflow-x-auto scroll-smooth"
137+ style = { {
138+ scrollbarWidth : 'none' ,
139+ msOverflowStyle : 'none'
140+ } }
132141 >
133142 { navLinks . map ( ( link : { path : string ; label : string } , index : number ) => {
134143 const isActive = location . pathname === link . path ;
@@ -183,9 +192,9 @@ export function Navigation({ inline = false }: NavigationProps) {
183192 initial = { { opacity : 0 , y : - 20 } }
184193 animate = { { opacity : 1 , y : 0 } }
185194 exit = { { opacity : 0 , y : - 20 } }
186- className = "lg:hidden bg-white border-t border-black/10 shadow-lg"
195+ className = "lg:hidden bg-white border-t border-gray-200 shadow-lg"
187196 >
188- < div className = "w-full max-w-[90rem] mx-auto px-4 sm:px-6 py-5 space-y-2 text-center" >
197+ < div className = "w-full max-w-[90rem] mx-auto px-4 sm:px-6 py-4 sm:py- 5 space-y-2 text-center" >
189198 { navLinks . map ( ( link : { path : string ; label : string } ) => {
190199 const isActive = location . pathname === link . path ;
191200 return (
0 commit comments