Skip to content
Snippets Groups Projects
Commit cceb00a6 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Merge branch 'comment-counter' into 'master'

Add badge as comment counter

Closes #257

See merge request arsnova/arsnova-lite!209
parents 3ffa2234 dc7f561b
Branches
Tags
1 merge request!209Add badge as comment counter
Pipeline #27029 passed with stages
in 6 minutes and 49 seconds
......@@ -12,6 +12,11 @@
<span class="fill-remaining-space"></span>
<div class="button-bar" fxLayoutAlign="center center">
<div *ngIf="comments && comments.length > 0">
<button mat-mini-fab color="primary" class="comment-counter" *ngIf="(!filteredComments) || (comments.length === filteredComments.length)">{{comments.length}}</button>
<button mat-mini-fab color="secondary" class="comment-counter" *ngIf="(filteredComments) && (comments.length > filteredComments.length)">{{filteredComments.length}}</button>
</div>
<button mat-icon-button class="searchBarButton" *ngIf="!searchBox.value && comments && comments.length > 0"
[matMenuTriggerFor]="filterMenu" matTooltip="{{ 'comment-list.filter-comments' | translate }}">
<mat-icon class="searchBarIcon">filter_list</mat-icon>
......
......@@ -79,3 +79,7 @@ h4 {
.unread-icon {
color: var(--yellow);
}
.comment-counter {
font-size: 18pt;
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment