Skip to content

Commit

Permalink
Fix Popover Panel to be hidden (#49)
Browse files Browse the repository at this point in the history
* Fix Popover Panel to be hidden

* Put comment for fixing Navbar Responsive
  • Loading branch information
longtran1904 authored Feb 12, 2023
1 parent 1f59623 commit 52df418
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export default function Navbar({ navbarButtons }) {
leaveFrom="opacity-100 scale-100"
leaveTo="opacity-0 scale-95"
>
{/* Hide Popover Panel when user expand browser window */}
<div className="md:hidden">
<Popover.Panel className="absolute min-w-full">
<div className="px-4 py-3 shadow-lg bg-green-10 flex flex-col divide-y divide-gray-300">
{navbarButtons.map((buttonInfo) => (
Expand All @@ -57,6 +59,7 @@ export default function Navbar({ navbarButtons }) {
))}
</div>
</Popover.Panel>
</div>
</Transition>
</>
)}
Expand Down

0 comments on commit 52df418

Please sign in to comment.