forked from forkanization/Proxmox-arm64
Update Navbar.tsx
This commit is contained in:
@@ -28,7 +28,6 @@ function Navbar() {
|
|||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
return (
|
return (
|
||||||
<>
|
|
||||||
<div
|
<div
|
||||||
className={`fixed left-0 top-0 z-50 flex w-screen justify-center px-4 xl:px-0 ${
|
className={`fixed left-0 top-0 z-50 flex w-screen justify-center px-4 xl:px-0 ${
|
||||||
isScrolled ? "glass border-b bg-background/50" : ""
|
isScrolled ? "glass border-b bg-background/50" : ""
|
||||||
@@ -53,22 +52,16 @@ function Navbar() {
|
|||||||
<CommandMenu />
|
<CommandMenu />
|
||||||
<StarOnGithubButton />
|
<StarOnGithubButton />
|
||||||
{navbarLinks.map(({ href, event, icon, text }) => (
|
{navbarLinks.map(({ href, event, icon, text }) => (
|
||||||
<TooltipProvider key={event}>
|
<Button variant="ghost" size={"icon"} asChild>
|
||||||
<Button variant="ghost" size={"icon"} asChild>
|
<Link
|
||||||
<Link
|
target="_blank"
|
||||||
target="_blank"
|
href={href}
|
||||||
href={href}
|
data-umami-event={event}
|
||||||
data-umami-event={event}
|
>
|
||||||
>
|
{icon}
|
||||||
{icon}
|
<span className="sr-only">{text}</span>
|
||||||
<span className="sr-only">{text}</span>
|
</Link>
|
||||||
</Link>
|
</Button>
|
||||||
</Button>
|
|
||||||
<TooltipContent side="bottom" className="text-xs">
|
|
||||||
{text}
|
|
||||||
</TooltipContent>
|
|
||||||
</Tooltip>
|
|
||||||
</TooltipProvider>
|
|
||||||
))}
|
))}
|
||||||
<ThemeToggle />
|
<ThemeToggle />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user