File tree Expand file tree Collapse file tree 1 file changed +5
-27
lines changed Expand file tree Collapse file tree 1 file changed +5
-27
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ export const HoverNavigation = ({
146146 < a
147147 href = { item ?. link }
148148 key = { item ?. link }
149- className = "group relative block h-full px-5 py-2"
149+ className = "group relative block h-fit px-5 py-2"
150150 onMouseEnter = { ( ) => setHoveredIndex ( idx ) }
151151 onMouseLeave = { ( ) => setHoveredIndex ( null ) }
152152 >
@@ -189,39 +189,17 @@ export const HoverNavigation = ({
189189 transition = { {
190190 ease : "easeInOut" ,
191191 } }
192- className = "h-0 overflow-hidden lg: hidden"
192+ className = "overflow-hidden"
193193 >
194194 { items . map ( ( item , idx ) => (
195195 < a
196196 href = { item ?. link }
197197 key = { item ?. link }
198- className = "group relative block h-full px-5 py-2"
198+ className = "group relative block h-full px-5 py-2 text-center lg:hidden "
199199 onMouseEnter = { ( ) => setHoveredIndex ( idx ) }
200200 onMouseLeave = { ( ) => setHoveredIndex ( null ) }
201201 >
202- < AnimatePresence >
203- { hoveredIndex === idx && (
204- < motion . span
205- className = "absolute inset-0 block h-full w-full rounded-3xl bg-neutral-200"
206- layoutId = "hoverBackground"
207- initial = { { opacity : 0 } }
208- animate = { {
209- opacity : 1 ,
210- transition : {
211- duration : 0.15 ,
212- } ,
213- } }
214- exit = { {
215- opacity : 0 ,
216- transition : {
217- duration : 0.15 ,
218- delay : 0.2 ,
219- } ,
220- } }
221- />
222- ) }
223- </ AnimatePresence >
224- < NavBarLink > { item . label } </ NavBarLink >
202+ { item . label }
225203 </ a >
226204 ) ) }
227205 </ motion . ul >
@@ -240,7 +218,7 @@ export const NavBarLink = ({
240218 return (
241219 < div
242220 className = { cn (
243- "relative z-20 h-full w-full overflow-hidden rounded-2xl text-center transition-all ease-out group-hover:text-black" ,
221+ "relative z-20 h-fit w-full overflow-hidden rounded-2xl text-center transition-all ease-out group-hover:text-black" ,
244222 className ,
245223 ) }
246224 >
You can’t perform that action at this time.
0 commit comments