@@ -9,9 +9,9 @@ function TopBar() {
99 const { handleFileChange, handleDownload } = useDatabaseWorker ( ) ;
1010
1111 return (
12- < header className = "flex items-center justify-between gap-2 border-b px-1 py-1.5" >
12+ < header className = "flex flex-wrap items-center justify-between gap-2 border-b px-1 py-1.5 sm:flex-nowrap " >
1313 < section
14- className = "flex items-center gap-1"
14+ className = "flex min-w-0 flex-1 flex-wrap items-center gap-1"
1515 aria-label = "Database file operations"
1616 >
1717 < label
@@ -32,7 +32,7 @@ function TopBar() {
3232 < Button
3333 size = "sm"
3434 variant = "outline"
35- className = "border-foreground/25 pointer-events-none h-8 cursor-pointer px-3 text-xs font-medium sm:w-[200px]"
35+ className = "border-foreground/25 pointer-events-none w-full cursor-pointer text-xs font-medium sm:w-[200px]"
3636 aria-hidden = "true"
3737 tabIndex = { - 1 }
3838 >
@@ -43,7 +43,7 @@ function TopBar() {
4343 < Button
4444 size = "sm"
4545 variant = "outline"
46- className = "border-foreground/25 h-8 px-3 text-xs font-medium"
46+ className = "border-foreground/25 text-xs font-medium"
4747 onClick = { handleDownload }
4848 aria-label = "Save current database to file"
4949 >
@@ -53,26 +53,24 @@ function TopBar() {
5353 </ section >
5454
5555 < section
56- className = "flex items-center gap-1"
56+ className = "ml-auto flex items-center gap-1"
5757 aria-label = "Application settings and links"
5858 >
59- < a
60- href = "https://github.com/yzua/sqlite-online"
61- target = "_blank"
62- rel = "noopener noreferrer"
63- className = "focus:ring-ring rounded-md transition-opacity hover:opacity-80 focus:ring-2 focus:ring-offset-2 focus:outline-none"
64- aria-label = "View source code on GitHub (opens in new tab)"
59+ < Button
60+ asChild
61+ size = "icon"
62+ variant = "ghost"
63+ className = "hidden sm:inline-flex"
6564 >
66- < Button
67- size = "icon"
68- variant = "ghost"
69- className = "hidden h-8 w-8 sm:flex"
70- tabIndex = { - 1 }
71- aria-hidden = "true"
65+ < a
66+ href = "https://github.com/yzua/sqlite-online"
67+ target = "_blank"
68+ rel = "noopener noreferrer"
69+ aria-label = "View source code on GitHub (opens in new tab)"
7270 >
7371 < GitForkIcon className = "h-4 w-4" />
74- </ Button >
75- </ a >
72+ </ a >
73+ </ Button >
7674
7775 < HighContrastToggle />
7876 < ModeToggle />
0 commit comments