preference sidebar fix + badge center alignment
This commit is contained in:
parent
3a0d33ca13
commit
b354b2ed52
2 changed files with 11 additions and 2 deletions
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
@for(section of sections; track section.title + section.children.length; let idx = $index;) {
|
||||
@if (hasAnyChildren(user, section)) {
|
||||
<h5 class="side-nav-header mb-2 ms-3" [ngClass]="{'mt-4': idx > 0}">{{t(section.title)}}</h5>
|
||||
<h5 class="side-nav-header mb-2" [ngClass]="{'mt-4': idx > 0}">{{t(section.title)}}</h5>
|
||||
@for(item of section.children; track item.fragment) {
|
||||
@if (accountService.hasAnyRole(user, item.roles, item.restrictRoles)) {
|
||||
<app-side-nav-item [id]="'nav-item-' + item.fragment" [noIcon]="true" link="/settings" [fragment]="item.fragment" [title]="item.fragment | settingFragment" [badgeCount]="item.badgeCount$ | async"></app-side-nav-item>
|
||||
|
|
|
|||
|
|
@ -193,10 +193,12 @@
|
|||
.side-nav {
|
||||
overflow-x: hidden;
|
||||
padding-bottom: 0.625rem;
|
||||
padding-left: 1.125rem;
|
||||
|
||||
.side-nav-header {
|
||||
color: #ffffff;
|
||||
font-size: 1rem;
|
||||
margin-left: unset;
|
||||
|
||||
&:first-of-type {
|
||||
margin-top: 0.7rem;
|
||||
|
|
@ -207,7 +209,6 @@
|
|||
font-size: 1rem;
|
||||
min-height: 1.875rem;
|
||||
justify-content: unset;
|
||||
margin-left: 1.125rem;
|
||||
|
||||
&.active {
|
||||
.side-nav-text {
|
||||
|
|
@ -220,6 +221,14 @@
|
|||
margin-left: 0.75rem;
|
||||
font-size: 0.9rem;
|
||||
color: #999999;
|
||||
|
||||
div {
|
||||
display: flex;
|
||||
|
||||
.badge {
|
||||
align-self: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card-actions {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue