From 4ea8eaca04baa6f818a57ee34c50d303b96851d6 Mon Sep 17 00:00:00 2001 From: neodk2004 Date: Fri, 14 Aug 2026 15:39:29 +0200 Subject: [PATCH] fix(landing): fix mobile header overflow and a 768px tablet overflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mobile (<640px): the sign-up button was ~50% offscreen. The header crammed logo + theme toggle + full LanguageSwitcher (globe icon + "Sprache:" label + 2 flag buttons) + sign-up pill into a narrow viewport. Collapsed LanguageSwitcher to icon-only flags below sm, tightened header padding/gaps, and reduced the sign-up button's mobile padding. Verified via Chrome DevTools viewport emulation at 320px and 375px — button fully visible at both. While verifying, found a second, seemingly pre-existing overflow at exactly 768px (the md: breakpoint): the desktop nav links (Home/Über uns/Impressum) plus the full-size right-side group don't fit in that width, cutting off the sign-up button again and causing horizontal scroll. Moved the nav links from md:flex to lg:flex so they only appear once there's actually room (confirmed clean at 768px and 1024px+). --- src/app/page.tsx | 8 ++++---- src/components/i18n/LanguageSwitcher.tsx | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 8a20ccd..57cb6c2 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -48,14 +48,14 @@ export default async function RootPage() { return (
{/* Navbar */} -
+
-