Skip to content

fix: fixed menu display on tablets #2150

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
10 changes: 5 additions & 5 deletions apps/web/src/components/base-org/shared/TopNavigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,26 +176,26 @@ export default function TopNavigation() {
const showGasDropdownAndConnectWallet = !cryptoExcludedPaths.includes(pathname ?? '');
return (
<AnalyticsProvider context="navbar">
<nav className="fixed top-0 z-50 w-full shrink-0 px-[1rem] py-4 md:px-[1.5rem] lg:px-[2rem]">
<nav className="fixed top-0 z-50 w-full shrink-0 px-[1rem] py-4 lg:px-[1.5rem] lg:px-[2rem]">
<div className="flex w-full items-center justify-between gap-2">
{/* Logo and Gas price section */}
<div className="relative z-20 flex items-center gap-4 md:min-w-[16rem]">
<div className="relative z-20 flex items-center gap-4 lg:min-w-[16rem]">
<Link href="/" className="flex min-h-[3rem] min-w-[3rem]">
<Image src={logo as StaticImageData} alt="Base Logo" />
</Link>
{showGasDropdownAndConnectWallet && <DynamicWrappedGasPriceDropdown />}
</div>

<div className="hidden md:inline-block">
<div className="hidden lg:inline-block">
<MenuDesktop links={links} />
</div>

<div className="mr-auto inline-block md:hidden">
<div className="mr-auto inline-block lg:hidden">
<MenuMobile links={links} />
</div>

{/* Connect Wallet button */}
<div className="flex items-center justify-end gap-3 md:min-w-[16rem]">
<div className="flex items-center justify-end gap-3 lg:min-w-[16rem]">
{showGasDropdownAndConnectWallet && (
<Suspense>
<DynamicWrappedConnectWalletButton
Expand Down