Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Popover Panel to be hidden #49

Merged
merged 2 commits into from
Feb 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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">
samuel-ping marked this conversation as resolved.
Show resolved Hide resolved
<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