]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
comment name emphasis for video author
authorRigel Kent <sendmemail@rigelk.eu>
Tue, 17 Dec 2019 23:17:23 +0000 (00:17 +0100)
committerRigel Kent <sendmemail@rigelk.eu>
Tue, 17 Dec 2019 23:17:23 +0000 (00:17 +0100)
client/src/app/videos/+video-watch/comment/video-comment.component.html
client/src/app/videos/+video-watch/comment/video-comment.component.scss

index df996533d8eb1f352ca860d96cb4c0a06c0dce32..f53852385879dd1c4111745d861a5ab5383e6ff1 100644 (file)
         <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>
index 8d5348af4af28626609fb9063d49a37d97ec0bf5..0f95078c245957eb5256fec0fefd258bab5c1eaf 100644 (file)
@@ -25,8 +25,6 @@
 
   .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;
       }
     }