Skip to content

Commit

Permalink
chore: tidy up & simplify navBar elements from DaisyUI default
Browse files Browse the repository at this point in the history
  • Loading branch information
marktlinn committed Sep 7, 2023
1 parent 1f45e78 commit 08006a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/navbar/DropDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import DropDownLink from "./DropDownLink";

export default function DropDown({ name }: { name: string }) {
return (
<div className="dropdown py-0 mx-1 dropdown-bottom">
<div className="dropdown py-0 mx-2 dropdown-bottom">
<label
tabIndex={0}
className="btn m-0 p-0 bg-transparent border-none hover:border-none hover:bg-transparent"
Expand Down
10 changes: 4 additions & 6 deletions src/components/navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ export default function Navbar() {
</div>
<div>
<Bell notificationCount={notificationCount} />
<ul className="menu menu-horizontal px-1 ml-6 ">
<li className="flex flex-row items-center ">
<Avatar image="/avatar.png" height={34} width={34} />
<DropDown name={name} />
</li>
</ul>
<div className="px-2 ml-6 flex flex-row items-center">
<Avatar image="/avatar.png" height={34} width={34} />
<DropDown name={name} />
</div>
</div>
</nav>
);
Expand Down

0 comments on commit 08006a9

Please sign in to comment.