-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix embed-video and main list image heights, add embed video author
- Loading branch information
rolandtoth
committed
Nov 21, 2019
1 parent
b4d9771
commit 1f291de
Showing
4 changed files
with
79 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
<div *ngIf="videoData" class="embed-wrap" [ngStyle]="{'width': width + 'px'}"> | ||
<div [ngStyle]="{'padding-bottom': (videoData.ratio | percent)}"> | ||
<div class="embed-wrap" [ngStyle]="{'width': width + 'px'}" [ngClass]="!videoData?.thumbnail_url ? 'loading' : ''"> | ||
<div [ngStyle]="{'padding-bottom': (videoData?.ratio | percent)}"> | ||
<img src="{{ videoData.thumbnail_url }}" alt=""> | ||
<span class="play-icon" (click)="replaceImage($event)"> | ||
<svg [outerHTML]="'play-circle' | inlineSvg"></svg> | ||
</span> | ||
</div> | ||
<p>{{ videoData.title }}</p> | ||
<p> | ||
<span class="title">{{ videoData?.title }}</span> | ||
<span class="author text-faded"><small>{{ videoData?.author_name }}</small></span> | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export interface VideoData { | ||
author_name: string | ||
width: number | ||
height: number | ||
thumbnail_width: number | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters