33import { useState } from "react" ;
44import Link from "next/link" ;
55import { usePathname } from "next/navigation" ;
6+ import { HistoryIcon , PlusIcon } from "lucide-react" ;
67
78import { LanguageSwitcher } from "@/components/language-switcher" ;
89import { buttonVariants } from "@/components/ui/button-variants" ;
@@ -41,7 +42,7 @@ export function AppChrome({
4142 return (
4243 < >
4344 < header className = "border-b bg-background/90 backdrop-blur supports-[backdrop-filter]:bg-background/70" >
44- < div className = "app-shell flex min- h-16 flex-wrap items-center justify-between gap-x-2 gap-y-3 py-3 sm:flex-nowrap sm:gap-4" >
45+ < div className = "app-shell flex h-16 items-center justify-between gap-3 sm:gap-4" >
4546 < Link
4647 href = "/"
4748 className = "inline-flex shrink-0 items-center text-base font-semibold tracking-tight sm:text-lg"
@@ -58,21 +59,21 @@ export function AppChrome({
5859 appName
5960 ) }
6061 </ Link >
61- < nav className = "ml-auto flex min-w-0 flex-wrap items-center justify-end gap-1.5 sm:flex-nowrap sm:gap-2" >
62+ < nav className = "ml-auto flex shrink-0 items-center gap-1.5 sm:gap-2" >
6263 < LanguageSwitcher
63- className = "h-9 min-w-16 px-2.5 text-xs sm:min-w-28 sm:px-3 sm:text-sm"
64- compactLabel
64+ className = "h-9 w-12 px-2 sm:w-[8.75rem] sm:px-3 sm:text-sm"
65+ mobileIcon
6566 />
6667 < Link
6768 href = "/new"
6869 aria-label = { messages . appChrome . newEvent }
6970 className = { cn (
70- buttonVariants ( { variant : "ghost " } ) ,
71- "h-9 px-3 text-xs sm:px-4 sm:text-sm " ,
71+ buttonVariants ( { variant : "outline " } ) ,
72+ "size-9 p-0 sm: h-9 sm:w-auto sm:border-transparent sm:bg-transparent sm: px-4 sm:shadow-none sm:hover:bg-accent sm:hover:text-accent-foreground " ,
7273 ) }
7374 >
7475 < span aria-hidden = "true" className = "sm:hidden" >
75- { messages . appChrome . newEventCompact }
76+ < PlusIcon className = "size-4" />
7677 </ span >
7778 < span aria-hidden = "true" className = "hidden sm:inline" >
7879 { messages . appChrome . newEvent }
@@ -83,11 +84,11 @@ export function AppChrome({
8384 aria-label = { messages . appChrome . recentEvents }
8485 className = { cn (
8586 buttonVariants ( { variant : "outline" } ) ,
86- "h -9 px-3 text-xs sm:px-4 sm:text-sm" ,
87+ "size -9 p-0 sm:h-9 sm:w-auto sm:px-4 sm:text-sm" ,
8788 ) }
8889 >
8990 < span aria-hidden = "true" className = "sm:hidden" >
90- { messages . appChrome . recentEventsCompact }
91+ < HistoryIcon className = "size-4" />
9192 </ span >
9293 < span aria-hidden = "true" className = "hidden sm:inline" >
9394 { messages . appChrome . recentEvents }
0 commit comments