Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
Fix Nav link aligment
Browse files Browse the repository at this point in the history
  • Loading branch information
MananTank committed Apr 23, 2024
1 parent 59232cc commit dd24854
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/app/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,11 @@ export function Header() {
"xl:static xl:animate-none xl:flex-row xl:justify-between xl:bg-transparent xl:p-0",
)}
>
<ul className="flex flex-col gap-5 xl:flex-row xl:items-center">
<ul className="flex flex-col gap-5 xl:flex-row lg:items-center">
{links.map((link) => {
return (
<li
className="flex items-center"
key={link.href}
onClick={() => {
setShowBurgerMenu(false);
Expand Down Expand Up @@ -187,7 +188,7 @@ export function Header() {
<DocSearch variant="search" />
</div>

<div className="px-2">
<div className="xl:px-2">
<DropdownLinks
links={supportLinks}
onLinkClick={() => setShowBurgerMenu(false)}
Expand Down Expand Up @@ -225,15 +226,15 @@ function DropdownLinks(props: {
return (
<>
{/* desktop */}
<div className="hidden xl:block">
<div className="hidden xl:flex items-center">
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
variant="ghost"
className="inline-flex gap-1 px-0 font-medium text-f-300 hover:bg-transparent hover:text-f-100"
className="inline-flex gap-1 py-0 px-0 font-medium text-f-300 hover:bg-transparent hover:text-f-100 items-center text-sm"
>
{props.category}
<ChevronDownIcon className="w-4 text-f-300 opacity-70" />
<ChevronDownIcon className="text-f-300 opacity-70 size-4" />
</Button>
</DropdownMenuTrigger>

Expand Down

0 comments on commit dd24854

Please sign in to comment.