Align badges with nicks

master
Nikola Forró 6 years ago
parent 7bd615c5f9
commit 8b9e4892ff

@ -10,6 +10,14 @@
font-weight: 500; font-weight: 500;
} }
.mat-column-commenter_display_name img {
vertical-align: middle;
}
.mat-column-commenter_display_name span.commenter {
vertical-align: middle;
}
.spacer { .spacer {
flex: 1 1 auto; flex: 1 1 auto;
} }

@ -46,13 +46,14 @@
<span *ngIf="comment.message_user_badges"> <span *ngIf="comment.message_user_badges">
<ng-template ngFor let-token [ngForOf]="badges$ | async | splitbadges : comment.message_user_badges"> <ng-template ngFor let-token [ngForOf]="badges$ | async | splitbadges : comment.message_user_badges">
<img src="{{token.url}}" alt="{{token.title}}" *ngIf="token.hasOwnProperty('url')"> <img src="{{token.url}}" alt="{{token.title}}" *ngIf="token.hasOwnProperty('url')">
</ng-template> </ng-template>
</span> </span>
<span [ngStyle]="{color: comment.message_user_color}"> <span class="commenter" [ngStyle]="{color: comment.message_user_color}">
{{comment.commenter_display_name}} {{comment.commenter_display_name}}

Loading…
Cancel
Save