Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ export default function Navbar({ navLinks, enableDarkMode, navbarNoBg }) {
'bg-black': !navbarNoBg
})}
ref={ref}
/* Fix for a bug that only @joa was able to reproduce.
* For reference:
* - MacOS
* - Chrome: Version 118.0.5993.117 (Official Build) (arm64)
* - No specific window size
* On scrolling down and then back up the navbar would go an opaque off white.
*/
style="padding-top: 1px;"
>
<div className='container mx-auto px-4 sm:px-12 2xl:px-0 max-w-7xl flex flex-wrap items-center justify-between h-full'>
<a href='/' class='flex items-center w-20 z-10'>
Expand Down