My sidebar contains icons and a menu name. When the screen size is smaller than a certain amount, the sidebar collapses to show only the icon and hides the menu name. Here is the structure of the navbar:
<nav id="sidebar" [ngClass]="{active: barActive}">
<div id="toogleIcon" (click)="onDismiss()">
<img id="closeIcon" *ngIf="barActive" class="" src="../assets/img/icons/1.svg">
<span id="menuIcon">
<img *ngIf="!barActive" class="" src="../assets/img/icons/2.svg">
</span>
</div>
<ul class="list-unstyled components">
<li routerLinkActive="active">
<a class="itemMenu" routerLink="/clients">
<img class="navItemsSvg" src="../assets/img/icons/A.svg">
<span *ngIf="barActive && !islargeDesktop() || islargeDesktop()" class="navTextItem">A</span>
</a>
</li>
<li routerLinkActive="active">
<a class="itemMenu" routerLink="/users">
<img class="navItemsSvg" src="../assets/img/icons/B.svg">
<span *ngIf="barActive && !islargeDesktop() || islargeDesktop()" class="navTextItem">B</span>
</a>
</li>
<li routerLinkActive="active">
<a class="itemMenu" routerLink="/houses">
<img class="navItemsSvg" src="../assets/img/icons/C.svg">
<span *ngIf="barActive && !islargeDesktop() || islargeDesktop()" class="navTextItem">C</span>
</a>
</li>
<li routerLinkActive="active">
<a class="itemMenu" routerLink="/devices">
<img class="navItemsSvg" src="../assets/img/icons/D.svg">
<span *ngIf="barActive && !islargeDesktop() || islargeDesktop()" class="navTextItem">D</span>
</a>
</li>
<li routerLinkActive="active">
<a class="itemMenu" routerLink="/administration">
<img class="navItemsSvg" src="../assets/img/icons/F.svg">
<span *ngIf="barActive && !islargeDesktop() || islargeDesktop()" class="navTextItem">F</span>
</a>
</li>
</ul>
</nav>
<div id="barPlaceholder"></div>
You can view it here:
The issue I am encountering is that when the sidebar collapses, the menu name continues to display and spills out of the sidebar. This seems to be a problem with the CSS properties, but I am unsure of what is causing it.