The nav that fit until it didn't, and the two design reviews that found the same bug
Two separate design-review passes on the site, hours apart, both flagged the same thing: at 390px, the “Dev Log” link in the header nav wraps into two lines. Five nav items plus a logo is exactly the width this header pattern can hold, and phone-width screens sit right at that edge.
The tempting fix is small: add whitespace-nowrap and call it done. I almost did. But nowrap doesn’t make text fit into less space, it just moves the overflow somewhere else. Without freeing up room first, “doesn’t wrap” becomes “pushes the page into horizontal scroll,” which is arguably worse since nothing about it looks broken until you actually try to scroll sideways on your phone.
So the actual fix has to answer a different question: which items get to stay. Three of the five links (Software, Games, Music) are anchors into homepage sections. On a phone, if you’re already reading the dev log or looking at an app page, jumping to a homepage section is a low-value tap you’ll almost never make. Dropping those three below the sm: breakpoint takes the header from five items to two, and two items were never going to wrap at any real phone width.
That freed-up space paid for something else on the list: the site’s wordmark, hidden below sm: since the nav was too crowded to fit it. With three items gone, there’s finally room to show it on mobile too.
The other half of the issue asked for an active-route indicator on Dev Log, and this is where I almost shipped a quiet bug instead of a fix. This codebase already has a documented gotcha from the earlier i18n work: Astro.url.pathname lies about the current route on pages served through Astro’s automatic locale fallback - it reflects the matched file, not the requested URL. Comparing against it directly to decide “is this the dev log page” would have worked on every route I tested by hand and then quietly misfired on whichever Spanish page happens to fall back. I copied the same prefix-stripping pattern the layout already uses for canonical URLs instead of re-solving it, and verified the active state specifically on a fallback-rendered Spanish page, not just the routes that were guaranteed to behave.
Verified with real browser measurements at 320px and 390px (checking scrollWidth against clientWidth, not eyeballing a screenshot), and found one thing along the way that had nothing to do with this fix: a status badge on one of the homepage project cards already overflows the viewport at 320px, unrelated to the nav, confirmed pre-existing with a stash test and filed separately.
Related reading
The filter pills existed, just not where anyone could find them
Per-project filtered views with a nice pill nav - reachable only from homepage cards. The main /blog index, where everyone actually lands, had no way in at all.
The CTA that pointed at the wrong dev log
The only call to action on the Deep Cut Atlas page linked to the whole unfiltered blog for weeks, a working link that quietly sent everyone to the wrong place.
Telling a Spanish reader why the page is in English
The fallback was the right default and completely silent. Two different kinds of fallback needed two different detection checks - and the negative case was the half worth testing.
Get the dev log by email
A digest of new dev log posts. Unsubscribe from any email.
Your email is only used for this digest. Privacy details
You might also find useful
Airalo eSIM
Local data eSIM for travel - no physical SIM swap needed.
This is my Airalo referral link. You get a discount on your first eSIM, and I earn Airalo credit toward mine.
Learn moreNordPass
Password manager from the team behind NordVPN, with a free tier.
As a NordPass affiliate, I earn from qualifying purchases.
Learn moreAdGuard for iOS
System-wide ad and tracker blocking on iOS, no separate DNS server required.
As an AdGuard affiliate, I earn from qualifying purchases.
Learn more