Fix miniature with a long name

This commit is contained in:
Chocobozzz 2018-11-15 11:54:09 +01:00
parent e6d5a4f1ea
commit 650e3d5ce3
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 4 additions and 4 deletions

View File

@ -7,10 +7,10 @@
class="video-miniature-name"
[routerLink]="[ '/videos/watch', video.uuid ]" [attr.title]="video.name" [ngClass]="{ 'blur-filter': isVideoBlur }"
>
{{ video.name }}
<span *ngIf="isUnlistedVideo()" class="badge badge-warning" i18n>Unlisted</span>
<span *ngIf="isPrivateVideo()" class="badge badge-danger" i18n>Private</span>
{{ video.name }}
</a>
<span i18n class="video-miniature-created-at-views">{{ video.publishedAt | myFromNow }} - {{ video.views | myNumberFormatter }} views</span>

View File

@ -29,7 +29,7 @@
display: block;
/* Fallback for non-webkit */
display: -webkit-box;
max-height: $font-size*$line-height*$lines-to-show + 0.2;
max-height: $font-size * $line-height * $lines-to-show;
/* Fallback for non-webkit */
font-size: $font-size;
line-height: $line-height;
@ -511,4 +511,4 @@
}
}
}
}
}