Add class to views elements
authorChocobozzz <me@florianbigard.com>
Fri, 25 Oct 2019 09:09:13 +0000 (11:09 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 25 Oct 2019 09:12:15 +0000 (11:12 +0200)
client/src/app/shared/video/video-miniature.component.html
client/src/app/videos/+video-watch/video-watch.component.html

index abd193bb193874c720618778aba3334c5ea22fda..c4b713073d5ba59d45bdf92a5846d0df8f03c32f 100644 (file)
 
       <span class="video-miniature-created-at-views">
         <my-date-toggle *ngIf="displayOptions.date" [date]="video.publishedAt"></my-date-toggle>
-        <ng-container *ngIf="displayOptions.date && displayOptions.views"> - </ng-container>
-        <ng-container i18n *ngIf="displayOptions.views">{{ video.views | myNumberFormatter }} views</ng-container>
+
+        <span class="views">
+          <ng-container *ngIf="displayOptions.date && displayOptions.views"> - </ng-container>
+          <ng-container i18n *ngIf="displayOptions.views">{{ video.views | myNumberFormatter }} views</ng-container>
+        </span>
       </span>
 
       <a tabindex="-1" *ngIf="displayOptions.by && displayOwnerAccount()" class="video-miniature-account" [routerLink]="[ '/accounts', video.byAccount ]">
index 68f284be3be1ab986b7f3c7b407d3483f6741b51..ac474b4275ec3e3fed5f42b299e285880c4385a0 100644 (file)
@@ -42,7 +42,7 @@
           <div class="d-block d-md-none"> <!-- only shown on medium devices, has its conterpart for larger viewports below -->
             <h1 class="video-info-name">{{ video.name }}</h1>
             <div i18n class="video-info-date-views">
-              Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle> - {{ video.views | myNumberFormatter }} views
+              Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle> <span class="views"> - {{ video.views | myNumberFormatter }} views</span>
             </div>
           </div>
 
@@ -51,7 +51,7 @@
               <h1 class="video-info-name">{{ video.name }}</h1>
 
               <div i18n class="video-info-date-views">
-                Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle> - {{ video.views | myNumberFormatter }} views
+                Published <my-date-toggle [date]="video.publishedAt"></my-date-toggle> <span class="views"> - {{ video.views | myNumberFormatter }} views</span>
               </div>
             </div>