@@ -77,7 +77,6 @@ export default function TopNavClient({platforms}: {platforms: Platform[]}) {
7777 const platformDropdownRef = useRef < HTMLDivElement > ( null ) ;
7878 const pathname = usePathname ( ) ;
7979 const isPlatformsRoute = pathname ?. startsWith ( '/platforms/' ) ;
80- const isProductRoot = pathname === '/product/sentry' || pathname === '/product/sentry/' ;
8180 const closeTimers = useRef < { products ?: NodeJS . Timeout ; sdks ?: NodeJS . Timeout } > ( { } ) ;
8281 const [ productsDropdownOpen , setProductsDropdownOpen ] = useState ( false ) ;
8382 const [ conceptsDropdownOpen , setConceptsDropdownOpen ] = useState ( false ) ;
@@ -225,7 +224,11 @@ export default function TopNavClient({platforms}: {platforms: Platform[]}) {
225224 </ svg >
226225 </ button >
227226 ) }
228- < div ref = { navRef } className = "overflow-x-auto whitespace-nowrap max-w-full scrollbar-hide pr-8 pl-8" >
227+ < div
228+ ref = { navRef }
229+ className = "overflow-x-auto whitespace-nowrap max-w-full scrollbar-hide pr-8 pl-8"
230+ style = { { scrollbarWidth : 'none' , msOverflowStyle : 'none' } }
231+ >
229232 < ul
230233 className = "flex gap-4 w-full items-center overflow-x-visible"
231234 style = { { scrollbarWidth : 'none' } } >
@@ -236,7 +239,7 @@ export default function TopNavClient({platforms}: {platforms: Platform[]}) {
236239 < button
237240 ref = { productsBtnRef }
238241 className = { `text-[var(--gray-12)] transition-colors duration-150 inline-block py-2 px-1 rounded-t-md flex items-center gap-1 text-[0.875rem] font-normal ${
239- productsDropdownOpen || isProductRoot
242+ productsDropdownOpen || productSections . some ( p => pathname ?. startsWith ( p . href ) )
240243 ? 'border-b-2 border-[var(--accent-purple)]'
241244 : 'hover:text-[var(--accent)]'
242245 } `}
@@ -569,7 +572,11 @@ export default function TopNavClient({platforms}: {platforms: Platform[]}) {
569572 </ div > ,
570573 document . body
571574 ) }
572- < style > { `div[role='menu']::-webkit-scrollbar { display: none !important; }` } </ style >
575+ < style > { `
576+ .scrollbar-hide::-webkit-scrollbar {
577+ display: none;
578+ }
579+ ` } </ style >
573580 </ div >
574581 ) ;
575582}
0 commit comments