From 67a8cff0fd0852359c1636e6ea84aad391e390b4 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 19 Apr 2024 15:29:26 +0100 Subject: [PATCH] fix navbar centering --- src/app/components/github-star.tsx | 2 +- src/app/components/navbar.tsx | 33 +++++++++++++++++------------- src/app/components/ui/input.tsx | 2 +- 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/src/app/components/github-star.tsx b/src/app/components/github-star.tsx index 1fc4d3a..4473eee 100644 --- a/src/app/components/github-star.tsx +++ b/src/app/components/github-star.tsx @@ -19,7 +19,7 @@ export function GithubStar(): ReactElement { return ( diff --git a/src/app/components/navbar.tsx b/src/app/components/navbar.tsx index c6af9de..70fc432 100644 --- a/src/app/components/navbar.tsx +++ b/src/app/components/navbar.tsx @@ -37,28 +37,33 @@ export default function NavBar(): ReactElement { const path = usePathname(); return ( -
+
+ {/* Left */}

Minecraft Utilities

-
- {pages.map((page, index) => { - const isActive = path.includes(page.url); + {/* Links */} +
+
+ {pages.map((page, index) => { + const isActive = path.includes(page.url); - return ( - - ); - })} + return ( + + ); + })} +
+ {/* Right */}
diff --git a/src/app/components/ui/input.tsx b/src/app/components/ui/input.tsx index 5141afd..9e5f24a 100644 --- a/src/app/components/ui/input.tsx +++ b/src/app/components/ui/input.tsx @@ -10,7 +10,7 @@ const Input = React.forwardRef(({ className, type, type={type} className={cn( "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", - className + className, )} ref={ref} {...props}