Fix top menu dropdown nested lists

This commit is contained in:
Chocobozzz 2024-09-27 14:29:49 +02:00
parent c55c94c844
commit 9e2649b8b7
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 6 additions and 8 deletions

View File

@ -1,10 +1,8 @@
<div class="sub-menu" [ngClass]="{ 'sub-menu-fixed': !isBroadcastMessageDisplayed, 'no-scroll': isModalOpened }">
<ul *ngFor="let menuEntry of menuEntries; index as id">
<ul class="sub-menu" [ngClass]="{ 'sub-menu-fixed': !isBroadcastMessageDisplayed, 'no-scroll': isModalOpened }">
<ng-container *ngFor="let menuEntry of menuEntries; index as id">
@if (isDisplayed(menuEntry)) {
@if (menuEntry.routerLink) {
<li *ngIf="menuEntry.routerLink && isDisplayed(menuEntry)">
<li>
<a
class="sub-menu-entry" [routerLink]="menuEntry.routerLink" routerLinkActive="active"
#routerLink (click)="onActiveLinkScrollToTop(routerLink)" ariaCurrentWhenActive="page"
@ -40,8 +38,8 @@
</li>
}
}
</ul>
</div>
</ng-container>
</ul>
<ng-template #modal let-close="close" let-dismiss="dismiss">
<div class="modal-body">

View File

@ -14,7 +14,7 @@ $ng-select-bg: pvar(--mainBackgroundColor);
$ng-select-selected: color.adjust($main-color, $lightness: 40%);
// $ng-select-selected-text: $ng-select-primary-text !default;
$ng-select-marked: pvar(--mainColorLightest);
$ng-select-marked: pvar(--mainColorVeryLight);
// $ng-select-marked-text: $ng-select-primary-text !default;
$ng-select-box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);