Skip to content

Commit fa8ff80

Browse files
small ui nits
1 parent 444e3ac commit fa8ff80

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/app/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ import { Separator } from "@/components/ui/separator";
1212

1313
export default async function Home() {
1414
return (
15-
<div className="h-screen flex flex-col items-center">
15+
<div className="flex flex-col items-center overflow-hidden">
1616
{/* TopBar */}
1717
<NavigationMenu />
1818

19-
<div className="flex flex-col justify-center items-center mt-8 md:mt-32 max-w-[90%]">
19+
<div className="flex flex-col justify-center items-center mt-8 mb-8 md:mt-18 max-w-[90%]">
2020
<div className="max-h-44 w-auto">
2121
<Image
2222
src={logoDark}
23-
className="w-full h-full hidden dark:block"
23+
className="h-18 md:h-40 w-auto hidden dark:block"
2424
alt={"Sourcebot logo"}
2525
priority={true}
2626
/>
2727
<Image
2828
src={logoLight}
29-
className="w-full h-full block dark:hidden"
29+
className="h-18 md:h-40 w-auto block dark:hidden"
3030
alt={"Sourcebot logo"}
3131
priority={true}
3232
/>

src/app/search/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default function SearchPage() {
103103
<div className="flex flex-row justify-between items-center py-1.5 px-3 gap-4">
104104
<div className="grow flex flex-row gap-4 items-center">
105105
<div
106-
className="cursor-pointer"
106+
className="shrink-0 cursor-pointer"
107107
onClick={() => {
108108
router.push("/");
109109
}}

src/app/searchBar.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ export const SearchBar = ({
8686
{...field}
8787
ref={inputRef}
8888
autoFocus={autoFocus ?? false}
89+
// This is needed to prevent mobile browsers from zooming in when the input is focused
90+
style={{ fontSize: '1rem' }}
8991
/>
9092
</FormControl>
9193
<FormMessage />

0 commit comments

Comments
 (0)