@@ -862,7 +862,7 @@ export function DocsLayout({
862862 < div
863863 ref = { expandedMenuRef }
864864 className = { twMerge (
865- 'w-[250px] xl:w-[300px] 2xl:w-[400px] shrink-0 ' ,
865+ 'max- w-[250px] xl:max- w-[300px] 2xl:max- w-[400px]' ,
866866 'flex-col overflow-hidden' ,
867867 'h-[calc(100dvh-var(--navbar-height))] top-[var(--navbar-height)]' ,
868868 'z-20 border-r border-gray-500/20' ,
@@ -896,7 +896,7 @@ export function DocsLayout({
896896 }
897897 } }
898898 >
899- < div className = "flex-1 flex flex-col overflow-y-auto" >
899+ < div className = "flex-1 flex flex-col overflow-y-auto min-w-[230px] " >
900900 < div className = "flex flex-col gap-1 p-4" >
901901 < FrameworkSelect libraryId = { libraryId } />
902902 < VersionSelect libraryId = { libraryId } />
@@ -910,10 +910,10 @@ export function DocsLayout({
910910 )
911911
912912 const docsTabs = (
913- < div className = "border-b border-gray-500/20 bg-white/70 dark:bg-black/40 backdrop-blur-lg" >
913+ < div className = "sticky top-[calc(var(--navbar-height)-4px)] z-30 border-b border-gray-500/20 bg-white/90 dark:bg-black/80 backdrop-blur-lg" >
914914 < nav
915915 aria-label = "Documentation sections"
916- className = "flex items-center gap-1 overflow-x-auto px-3 md:px-6 py-2 text-sm"
916+ className = "flex items-stretch gap-6 overflow-x-auto px-3 md:px-6 text-sm [scrollbar-width:none] [&::-webkit-scrollbar]:hidden "
917917 >
918918 { tabbedMenuConfig . map ( ( tab ) => {
919919 const target = tab . firstItem
@@ -935,14 +935,22 @@ export function DocsLayout({
935935 to = { target . to }
936936 params = { linkParams }
937937 className = { twMerge (
938- 'whitespace-nowrap rounded-md px-3 py-1.5 font-semibold transition-colors' ,
939- 'hover:bg-gray-500/10' ,
938+ 'relative whitespace-nowrap py-3 font-semibold transition-colors' ,
940939 isActive
941- ? `bg-gray-500/10 text-transparent bg-clip-text bg-linear-to-r ${ colorFrom } ${ colorTo } `
942- : 'opacity-70 hover:opacity -100' ,
940+ ? `text-transparent bg-clip-text bg-linear-to-r ${ colorFrom } ${ colorTo } `
941+ : 'text-slate-600 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate -100' ,
943942 ) }
944943 >
945944 { tab . label }
945+ { isActive ? (
946+ < span
947+ className = { twMerge (
948+ 'absolute left-0 right-0 -bottom-px h-[3px] rounded-t-full bg-linear-to-r' ,
949+ colorFrom ,
950+ colorTo ,
951+ ) }
952+ />
953+ ) : null }
946954 </ Link >
947955 )
948956 } ) }
@@ -1000,7 +1008,7 @@ export function DocsLayout({
10001008 ) }
10011009 </ div >
10021010 { ! isLandingPage && (
1003- < RightRail breakpoint = "md" className = "md:w-[280px ]" >
1011+ < RightRail breakpoint = "md" className = "md:w-[220px ]" >
10041012 < PartnersRail
10051013 analyticsPlacement = "docs_rail"
10061014 partners = { activePartners }
0 commit comments