mirror of https://github.com/Squidex/squidex.git
committed by
GitHub
11 changed files with 164 additions and 14 deletions
@ -1,3 +1,32 @@ |
|||||
<ul class="nav navbar-nav align-items-center"> |
<ul class="nav navbar-nav align-items-center"> |
||||
<sqx-notifo></sqx-notifo> |
<sqx-notifo></sqx-notifo> |
||||
|
|
||||
|
<ng-container *ngIf="!isNotifoConfigured"> |
||||
|
<li class="nav-item nav-icon dropdown position-relative" #button> |
||||
|
<span class="nav-link dropdown-toggle" (click)="modalMenu.show()"> |
||||
|
<i class="icon-comments"></i> |
||||
|
|
||||
|
<span class="badge rounded-pill bg-danger" *ngIf="unread">{{unread}}</span> |
||||
|
</span> |
||||
|
</li> |
||||
|
|
||||
|
<ng-container *sqxModal="modalMenu;onRoot:false"> |
||||
|
<div class="dropdown-menu" [scrollTop]="scrollMe.scrollHeight" [sqxAnchoredTo]="button" [offset]="10" @fade #scrollMe> |
||||
|
<ng-container *ngIf="commentsState.comments | async; let comments"> |
||||
|
<small class="text-muted" *ngIf="comments.length === 0"> |
||||
|
{{ 'notifications.empty' | sqxTranslate}} |
||||
|
</small> |
||||
|
|
||||
|
<sqx-comment *ngFor="let comment of comments; trackBy: trackByComment" |
||||
|
[comment]="comment" |
||||
|
[commentsState]="commentsState" |
||||
|
[confirmDelete]="false" |
||||
|
[canDelete]="true" |
||||
|
[canFollow]="true" |
||||
|
[userToken]="userToken"> |
||||
|
</sqx-comment> |
||||
|
</ng-container> |
||||
|
</div> |
||||
|
</ng-container> |
||||
|
</ng-container> |
||||
</ul> |
</ul> |
||||
@ -0,0 +1,13 @@ |
|||||
|
.dropdown-menu { |
||||
|
max-height: 500px; |
||||
|
min-height: 4rem; |
||||
|
overflow-y: scroll; |
||||
|
padding: 1.25rem; |
||||
|
padding-bottom: 1rem; |
||||
|
width: 300px; |
||||
|
} |
||||
|
|
||||
|
.badge { |
||||
|
@include absolute(-.5rem, 0, null, null); |
||||
|
font-size: 80%; |
||||
|
} |
||||
Loading…
Reference in new issue