mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-23 01:27:14 +02:00
Fixing settings warning badge #507
This commit is contained in:
parent
ab0ac7cf53
commit
b7fe8f681c
@ -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',
|
||||
};
|
||||
},
|
||||
};
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user