From 1530544b8b3322f90829991df3d41d06e43e54a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Falc=C3=B3n?= Date: Tue, 9 Jun 2026 14:44:35 +0200 Subject: [PATCH] fix(header): keep mobile logo on one line, compact auth buttons (#512) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## What Two mobile-header fixes: - **Logo no longer wraps/clips.** The brand row had no `shrink-0`, so flexbox squeezed it and "Whisper Money" wrapped to two lines or got cut off by the buttons. Now pinned with `shrink-0` + `whitespace-nowrap`, and the bird icon is bumped `size-4` → `size-5`. - **Auth buttons fit when logged out.** Log in + Register both as text buttons overflowed the narrow pill. Log in is now an icon-only ghost button (`LogIn` icon, `aria-label` for a11y), so Register keeps its full primary-CTA pill. Desktop header is untouched. ## Test plan - [ ] Logged-out mobile: logo on one line, login icon + Register both visible, no overflow - [ ] Logged-in mobile: Dashboard button unaffected - [ ] Desktop unchanged --- resources/js/components/partials/header.tsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/resources/js/components/partials/header.tsx b/resources/js/components/partials/header.tsx index 03f83031..74e81508 100644 --- a/resources/js/components/partials/header.tsx +++ b/resources/js/components/partials/header.tsx @@ -3,7 +3,7 @@ import { dashboard, login } from '@/routes'; import { type SharedData } from '@/types'; import { __ } from '@/utils/i18n'; import { Link, usePage } from '@inertiajs/react'; -import { BirdIcon, Github, StarIcon } from 'lucide-react'; +import { BirdIcon, Github, LogIn, StarIcon } from 'lucide-react'; import { useEffect, useState } from 'react'; import DiscordIcon from '../icons/DiscordIcon'; import { Button } from '../ui/button'; @@ -46,9 +46,11 @@ export default function Header({ <> {/* Mobile pill header */}
-
- - Whisper Money +
+ + + Whisper Money +