Skip to content

Commit

Permalink
style: navbar (#666)
Browse files Browse the repository at this point in the history
  • Loading branch information
a0m0rajab authored Sep 23, 2024
2 parents 4d5744a + 9e356e5 commit cefc973
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function Navbar({
activeSectionLayoutItem: string;
}) {
return (
<div className="fixed left-0 right-0 top-0 z-50">
<div className="sticky left-0 right-0 top-0 z-50">
<nav className="bg-white px-1 py-2.5 md:px-4">
<div className="flex flex-wrap items-center justify-between">
<div className="flex items-center justify-start">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function ProfileMenu() {
<DropdownMenuSeparator />
<ul className="py-1 text-gray-700 " aria-labelledby="dropdown">
{profileMenu?.menu.account.map((item) => (
<li>
<li key={item.name}>
<a
href={item.href}
className="flex items-center px-4 py-2 text-sm hover:bg-gray-100"
Expand All @@ -54,7 +54,7 @@ function ProfileMenu() {
<DropdownMenuSeparator />
<ul className="py-1 text-gray-700 " aria-labelledby="dropdown">
{profileMenu?.menu.primary.map((item) => (
<li>
<li key={item.name}>
<a
href={item.href}
className="flex items-center px-4 py-2 text-sm hover:bg-gray-100"
Expand All @@ -73,7 +73,7 @@ function ProfileMenu() {
<DropdownMenuSeparator />
<ul className="py-1 text-gray-700 " aria-labelledby="dropdown">
{profileMenu?.menu.secondary.map((item) => (
<li>
<li key={item.name}>
<a
href={item.href}
className="flex items-center px-4 py-2 text-sm hover:bg-gray-100"
Expand Down
18 changes: 8 additions & 10 deletions packages/ui/src/theme/main-admin-layout/header-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,14 @@ export function HeaderSection() {

return (
<div className="flex flex-col gap-3 px-1">
<div className="mb-36">
<Navbar
navbarItems={navbarItems}
navigation={breadcrumbItems}
activeSectionLayoutItem={activeSectionLayoutItem}
sectionLayoutItems={sectionLayoutItems}
prefix={prefix}
lang={lang}
/>
</div>
<Navbar
navbarItems={navbarItems}
navigation={breadcrumbItems}
activeSectionLayoutItem={activeSectionLayoutItem}
sectionLayoutItems={sectionLayoutItems}
prefix={prefix}
lang={lang}
/>
<PageHeader
title={activeNavItem?.displayName}
description={activeNavItem?.description}
Expand Down

0 comments on commit cefc973

Please sign in to comment.