mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-14 21:35:25 +00:00
small ui nits
This commit is contained in:
parent
444e3ac28c
commit
fa8ff8088a
3 changed files with 7 additions and 5 deletions
|
|
@ -12,21 +12,21 @@ import { Separator } from "@/components/ui/separator";
|
||||||
|
|
||||||
export default async function Home() {
|
export default async function Home() {
|
||||||
return (
|
return (
|
||||||
<div className="h-screen flex flex-col items-center">
|
<div className="flex flex-col items-center overflow-hidden">
|
||||||
{/* TopBar */}
|
{/* TopBar */}
|
||||||
<NavigationMenu />
|
<NavigationMenu />
|
||||||
|
|
||||||
<div className="flex flex-col justify-center items-center mt-8 md:mt-32 max-w-[90%]">
|
<div className="flex flex-col justify-center items-center mt-8 mb-8 md:mt-18 max-w-[90%]">
|
||||||
<div className="max-h-44 w-auto">
|
<div className="max-h-44 w-auto">
|
||||||
<Image
|
<Image
|
||||||
src={logoDark}
|
src={logoDark}
|
||||||
className="w-full h-full hidden dark:block"
|
className="h-18 md:h-40 w-auto hidden dark:block"
|
||||||
alt={"Sourcebot logo"}
|
alt={"Sourcebot logo"}
|
||||||
priority={true}
|
priority={true}
|
||||||
/>
|
/>
|
||||||
<Image
|
<Image
|
||||||
src={logoLight}
|
src={logoLight}
|
||||||
className="w-full h-full block dark:hidden"
|
className="h-18 md:h-40 w-auto block dark:hidden"
|
||||||
alt={"Sourcebot logo"}
|
alt={"Sourcebot logo"}
|
||||||
priority={true}
|
priority={true}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ export default function SearchPage() {
|
||||||
<div className="flex flex-row justify-between items-center py-1.5 px-3 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">
|
||||||
<div
|
<div
|
||||||
className="cursor-pointer"
|
className="shrink-0 cursor-pointer"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
router.push("/");
|
router.push("/");
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,8 @@ export const SearchBar = ({
|
||||||
{...field}
|
{...field}
|
||||||
ref={inputRef}
|
ref={inputRef}
|
||||||
autoFocus={autoFocus ?? false}
|
autoFocus={autoFocus ?? false}
|
||||||
|
// This is needed to prevent mobile browsers from zooming in when the input is focused
|
||||||
|
style={{ fontSize: '1rem' }}
|
||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue