@@ -21,23 +21,26 @@ export const Navigation: React.FC<NavigationProps> = ({
2121 padding,
2222 nav,
2323} ) => (
24- < div className = "relative w-screen " >
24+ < div className = "relative w-full overflow-x-hidden " >
2525 < header
26- className = { `flex flex-col justify-center items-center h-auto w-screen relative top-0 ${ padding } ` }
26+ className = { `flex flex-col justify-center items-center h-auto relative top-0 ${ padding } ` }
2727 style = { { backgroundColor } }
2828 >
29- < div className = "mt-4 w-full flex flex-row justify-around " >
29+ < div className = "mt-4 w-full flex flex-wrap justify-center gap-4 md:gap-6 lg:gap-10 " >
3030 { nav . map ( ( group , index ) => (
3131 < div key = { index } className = "relative group" >
32- < div className = "peer whitespace-nowrap inline-flex justify-center cursor-pointer mx-7 pt-5 pb-2 text-lg font-semibold text-white group-hover:text-black transition duration-300" >
32+ < div className = "peer whitespace-nowrap inline-flex justify-center cursor-pointer px-3 pt-5 pb-2 text-lg font-semibold text-white group-hover:text-black transition duration-300" >
3333 { group . label }
3434 </ div >
3535 { Array . isArray ( group . items ) && group . items . length > 0 && (
3636 < div className = "opacity-0 pointer-events-none
3737 peer-hover:opacity-100 group-hover:opacity-100
3838 peer-hover:pointer-events-auto group-hover:pointer-events-auto
3939 transition-opacity duration-300
40- absolute left-3 z-10 w-56 origin-top-right rounded-md bg-black ring-1 shadow-lg ring-black/5
40+ absolute left-0
41+ md:left-auto
42+ md:right-0
43+ z-10 w-auto origin-top-right rounded-md bg-black ring-1 shadow-lg ring-black/5
4144 " >
4245 < div className = "py-1" >
4346 { group . items . map ( ( item , itemIdx ) => (
@@ -172,4 +175,4 @@ export const NavigationConfig: ComponentConfig<NavigationProps> = {
172175 ] ,
173176 } ,
174177 render : ( props ) => < Navigation { ...props } /> ,
175- }
178+ } ;
0 commit comments