Small style tweeks to top bar

This commit is contained in:
bkellam 2024-08-28 12:06:00 -07:00
parent 7bae7ef81c
commit be1bbfc16e
7 changed files with 8 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

@ -6,8 +6,8 @@ import { ThemeProvider } from "next-themes";
const inter = Inter({ subsets: ["latin"] }); const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = { export const metadata: Metadata = {
title: "Create Next App", title: "Sourcebot",
description: "Generated by create next app", description: "Sourcebot",
}; };
export default function RootLayout({ export default function RootLayout({

View file

@ -46,16 +46,16 @@ export default function Home() {
<main className="h-screen overflow-clip"> <main className="h-screen overflow-clip">
{/* TopBar */} {/* TopBar */}
<div className="sticky top-0 left-0 right-0 z-10"> <div className="sticky top-0 left-0 right-0 z-10">
<div className="flex flex-row justify-between items-center py-1 px-2 gap-4"> <div className="flex flex-row justify-between items-center py-1.5 px-3 gap-4">
<div className="grow flex flex-row gap-4 items-center"> <div className="grow flex flex-row gap-4 items-center">
<Image <Image
src={logoDark} src={logoDark}
className="h-12 w-auto hidden dark:block" className="h-4 w-auto hidden dark:block"
alt={"Sourcebot logo"} alt={"Sourcebot logo"}
/> />
<Image <Image
src={logoLight} src={logoLight}
className="h-12 w-auto block dark:hidden" className="h-4 w-auto block dark:hidden"
alt={"Sourcebot logo"} alt={"Sourcebot logo"}
/> />
<SearchBar <SearchBar
@ -82,7 +82,7 @@ export default function Home() {
/> />
</div> </div>
<Separator /> <Separator />
<div className="bg-accent p-2"> <div className="bg-accent p-1">
<p className="text-sm font-medium">Results for: {fileMatches.length} files in {searchDurationMs} ms</p> <p className="text-sm font-medium">Results for: {fileMatches.length} files in {searchDurationMs} ms</p>
</div> </div>
<Separator /> <Separator />

View file

@ -52,7 +52,7 @@ export const SearchBar = ({
return ( return (
<Input <Input
value={query} value={query}
className="max-w-lg" className="w-full h-8"
placeholder="Search..." placeholder="Search..."
onChange={(e) => { onChange={(e) => {
const query = e.target.value; const query = e.target.value;

View file

@ -55,7 +55,7 @@ export const SettingsDropdown = ({
return ( return (
<DropdownMenu> <DropdownMenu>
<DropdownMenuTrigger asChild> <DropdownMenuTrigger asChild>
<Button variant="outline" size="icon"> <Button variant="outline" size="icon" className="w-8 h-8">
<Settings className="h-4 w-4" /> <Settings className="h-4 w-4" />
</Button> </Button>
</DropdownMenuTrigger> </DropdownMenuTrigger>