Olá, por favor, alguém pode ajudar?
Meu navbar não expande em smartphones.
Segue o código:
<nav class="navbar navbar-expand-lg" style="background-color: #181818" data-bs-theme="dark">
<div class="container ">
<a routerLink="inicio" class="navbar-brand"><img width="250 " alt=" " src="assets/images/logoPreto.jpg "></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown ">
<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a routerLink="inicio" routerLinkActive="active " class="nav-link" aria-current="page " href="# ">Home</a>
</li>
<li class="nav-item ">
<a routerLink="eventos" routerLinkActive="active " class="nav-link " aria-current="page " href="# ">Eventos</a>
</li>
<li class="nav-item ">
<a routerLink="organizadores" routerLinkActive="active " class="nav-link " aria-current="page " href="# ">Seja um Organizador</a>
</li>
<li>
<a routerLink="/perfil" routerLinkActive="active " class="nav-link " aria-current="page " href="# ">Minhas Inscrições</a>
</li>
<li>
<a routerLink="/resultados" routerLinkActive="active " class=" nav-link " aria-current="page " href="# ">Resultados</a>
</li>
<li class="nav-item ">
<a routerLink="/contato" routerLinkActive="active " class="nav-link " aria-current="page " href="# ">Contato</a>
</li>
</ul>
</div>
<ul class="navbar-nav ">
<li class="nav-item dropdown ">
<div *ngIf="loginService.usuario$ | async ">
<button id="button-basic " class="btn btn-dark dropdown-toggle " (click)="isCollapsed=! isCollapsed " [attr.aria-expanded]="!isCollapsed " aria-controls="collapseBasic ">
Sair
</button>
<ul id="collapseBasic " [collapse]="isCollapsed " style="z-index: 99999; " class="dropdown-menu ">
<li><a routerLink="/perfil " class="dropdown-item " (click)="Sair() ">Sair</a></li>
</ul>
</div>
<div *ngIf="!(loginService.usuario$ | async) ">
<button id="button-basic " class="btn btn-light dropdown-toggle " style="border-radius: 25px; " (click)="isCollapsed=! isCollapsed " [attr.aria-expanded]="!isCollapsed " aria-controls="collapseBasic ">
Entrar
</button>
</div>
</li>
<li class=" ">
<a routerLink="pagamento " class="button-basic"><button type="button " class="btn btn-dark "><img width="25px " src="assets/images/carrinhobc.png " class="rounded float-start " alt="... "></button></a>
</li>
</ul>
</div>
</nav>