mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-07 14:17:16 +02:00
fix(v2): hide mobile navbar hamburger when there are no links (#2624)
This commit is contained in:
parent
614adca45f
commit
409f8788dc
1 changed files with 26 additions and 24 deletions
|
@ -140,6 +140,7 @@ function Navbar() {
|
||||||
})}>
|
})}>
|
||||||
<div className="navbar__inner">
|
<div className="navbar__inner">
|
||||||
<div className="navbar__items">
|
<div className="navbar__items">
|
||||||
|
{links != null && links.length !== 0 && (
|
||||||
<div
|
<div
|
||||||
aria-label="Navigation bar toggle"
|
aria-label="Navigation bar toggle"
|
||||||
className="navbar__toggle"
|
className="navbar__toggle"
|
||||||
|
@ -164,6 +165,7 @@ function Navbar() {
|
||||||
/>
|
/>
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
<Link className="navbar__brand" to={logoLink} {...logoLinkProps}>
|
<Link className="navbar__brand" to={logoLink} {...logoLinkProps}>
|
||||||
{logoImageUrl != null && (
|
{logoImageUrl != null && (
|
||||||
<img
|
<img
|
||||||
|
|
Loading…
Add table
Reference in a new issue