1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Fixing settings warning badge #507

This commit is contained in:
Patrik J. Braun 2023-03-11 14:24:55 +01:00
parent ab0ac7cf53
commit b7fe8f681c
3 changed files with 6 additions and 7 deletions

View File

@ -12,10 +12,10 @@ export interface Dimension {
export const DimensionUtils = {
toString: (dim: Dimension) => {
return {
top: dim.top + 'px',
left: dim.left + 'px',
width: dim.width + 'px',
height: dim.height + 'px',
top: dim.top || 0 + 'px',
left: dim.left || 0 + 'px',
width: dim.width || 0 + 'px',
height: dim.height || 0 + 'px',
};
},
};

View File

@ -57,6 +57,5 @@ a.dropdown-item span, button.dropdown-item span, div.dropdown-item span {
a.dropdown-item span.badge, button.dropdown-item span.badge {
padding: 0.25em 0.37rem 0.25rem 0;
margin-left: -0.8rem;
}

View File

@ -70,7 +70,7 @@
aria-controls="dropdown-alignment">
<span class="oi oi-menu"></span>
<span *ngIf="isAdmin() && notificationService.numberOfNotifications>0"
class="navbar-badge badge badge-warning">{{notificationService.numberOfNotifications}}</span>
class="navbar-badge badge text-bg-warning">{{notificationService.numberOfNotifications}}</span>
</button>
<ul id="dropdown-alignment" *dropdownMenu
class="dropdown-menu dropdown-menu-right"
@ -138,7 +138,7 @@
<a class="dropdown-item" [routerLink]="['/admin']">
<span class="oi oi-wrench"></span>
<span *ngIf="notificationService.numberOfNotifications>0"
class="badge">{{notificationService.numberOfNotifications}}</span>
class="badge rounded-pill position-absolute p-0 text-bg-warning">{{notificationService.numberOfNotifications}}</span>
<ng-container i18n>Settings</ng-container>
</a>
</li>