App: hamburger i pigulka tytułu — wspólne wykończenie (bg/72+blur, border-line/60, rounded-10), kreski w kolorze tekstu

This commit is contained in:
tisachi
2026-10-17 02:36:12 +02:00
parent 4ed1810d99
commit 8a91642cc5

View File

@@ -134,7 +134,7 @@ export function Topbar({ onMenuOpen }: { onMenuOpen?: () => void }) {
<div className="safe-pad-top mx-auto max-w-5xl px-4 max-md:sticky max-md:top-0 max-md:z-20 md:px-8">
<div className="flex items-center justify-between gap-3 py-2.5 md:py-3 max-md:justify-end">
{/* telefon: otoczka tytułu na szerokość napisu, przylega do prawej (przy hamburgerze) */}
<h1 className="min-w-0 truncate rounded-2xl text-[1.15rem] font-bold tracking-[-0.01em] max-md:-mb-[7px] max-md:-mt-[7px] max-md:flex max-md:h-[34px] max-md:max-w-[60vw] max-md:items-center max-md:border max-md:border-line/60 max-md:bg-bg/72 max-md:px-3 max-md:text-[0.95rem] max-md:shadow-[0_8px_24px_-10px_rgba(0,0,0,0.55)] max-md:backdrop-blur-md md:flex-none">
<h1 className="min-w-0 truncate rounded-[10px] text-[1.15rem] font-bold tracking-[-0.01em] max-md:-mb-[7px] max-md:-mt-[7px] max-md:flex max-md:h-[34px] max-md:max-w-[60vw] max-md:items-center max-md:border max-md:border-line/60 max-md:bg-bg/72 max-md:px-3 max-md:text-[0.95rem] max-md:shadow-[0_8px_24px_-10px_rgba(0,0,0,0.55)] max-md:backdrop-blur-md md:flex-none">
{config?.title}
</h1>
{/* telefon: hamburger pływający po prawej (ta sama wysokość co tytuł);
@@ -144,7 +144,9 @@ export function Topbar({ onMenuOpen }: { onMenuOpen?: () => void }) {
type="button"
onClick={onMenuOpen}
aria-label="Otwórz menu"
className="grid h-[34px] w-[34px] flex-none cursor-pointer place-items-center rounded-[10px] border border-line bg-card text-dim shadow-card transition-colors hover:text-ink md:hidden"
/* telefon: te samo wykończenie co pigułka tytułu (tło+blur, border,
zaokrąglenie), kreski w kolorze tekstu nagłówka */
className="grid h-[34px] w-[34px] flex-none cursor-pointer place-items-center rounded-[10px] border border-line/60 bg-bg/72 text-ink shadow-[0_8px_24px_-10px_rgba(0,0,0,0.55)] backdrop-blur-md transition-colors hover:text-accent-text md:hidden"
>
<Menu className="h-4 w-4" />
</button>