mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-06 21:57:14 +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__items">
|
||||
{links != null && links.length !== 0 && (
|
||||
<div
|
||||
aria-label="Navigation bar toggle"
|
||||
className="navbar__toggle"
|
||||
|
@ -164,6 +165,7 @@ function Navbar() {
|
|||
/>
|
||||
</svg>
|
||||
</div>
|
||||
)}
|
||||
<Link className="navbar__brand" to={logoLink} {...logoLinkProps}>
|
||||
{logoImageUrl != null && (
|
||||
<img
|
||||
|
|
Loading…
Add table
Reference in a new issue