<div *ngIf="highlightedComment === true" class="highlighted-comment" i18n>Highlighted comment</div>
<div class="comment-account-date">
- <a [href]="comment.account.url" target="_blank" rel="noopener noreferrer" class="comment-account">{{ comment.by }}</a>
+ <a [href]="comment.account.url" target="_blank" rel="noopener noreferrer"
+ class="comment-account"
+ [ngClass]="{ 'video-author': video.account.id === comment.account.id }"
+ >{{ comment.by }}</a>
<a [routerLink]="['/videos/watch', video.uuid, { 'threadId': comment.threadId }]"
class="comment-date">{{ comment.createdAt | myFromNow }}</a>
</div>
.comment-avatar {
@include avatar(36px);
-
- margin-top: 5px;
}
.comment {
display: flex;
margin-bottom: 4px;
+ .video-author {
+ height: 20px;
+ background-color: #888888;
+ border-radius: 12px;
+ margin-bottom: 2px;
+ max-width: 100%;
+ box-sizing: border-box;
+ flex-direction: row;
+ align-items: center;
+ display: inline-flex;
+ padding-right: 6px;
+ padding-left: 6px;
+ color: white !important;
+ }
+
.comment-account {
@include disable-default-a-behaviour;
word-break: break-all;
color: var(--mainForegroundColor);
font-weight: $font-bold;
+ font-size: 90%;
}
.comment-date {
+ font-size: 90%;
color: $grey-foreground-color;
- margin-left: 10px;
+ margin-left: 5px;
+ text-decoration: none;
}
}