diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-04-21 18:26:09 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-04-26 21:23:19 +0200 |
commit | 897ec54d766902878d78abe04aa5b749f6b627f3 (patch) | |
tree | 821062ecb881286d45931c32c6b67b078ba47823 /client/src/app/videos/video-watch | |
parent | ea9f487b40c7f1d7348d9f88703cb9d52c7e8603 (diff) | |
download | PeerTube-897ec54d766902878d78abe04aa5b749f6b627f3.tar.gz PeerTube-897ec54d766902878d78abe04aa5b749f6b627f3.tar.zst PeerTube-897ec54d766902878d78abe04aa5b749f6b627f3.zip |
Client: beautiful watch page
Diffstat (limited to 'client/src/app/videos/video-watch')
-rw-r--r-- | client/src/app/videos/video-watch/video-watch.component.html | 14 | ||||
-rw-r--r-- | client/src/app/videos/video-watch/video-watch.component.scss | 11 |
2 files changed, 15 insertions, 10 deletions
diff --git a/client/src/app/videos/video-watch/video-watch.component.html b/client/src/app/videos/video-watch/video-watch.component.html index 989de0de4..059465d65 100644 --- a/client/src/app/videos/video-watch/video-watch.component.html +++ b/client/src/app/videos/video-watch/video-watch.component.html | |||
@@ -14,14 +14,12 @@ | |||
14 | </div> | 14 | </div> |
15 | 15 | ||
16 | <div class="row"> | 16 | <div class="row"> |
17 | <div class="col-md-12"> | 17 | <!-- We need the video container for videojs so we just hide it --> |
18 | <!-- We need the video container for videojs so we just hide it --> | 18 | <div [hidden]="videoNotFound" class="embed-responsive embed-responsive-19by9"> |
19 | <div [hidden]="videoNotFound" class="embed-responsive embed-responsive-19by9"> | 19 | <video id="video-container" class="video-js vjs-default-skin vjs-big-play-centered"></video> |
20 | <video id="video-container" class="video-js vjs-default-skin vjs-big-play-centered"></video> | ||
21 | </div> | ||
22 | |||
23 | <div *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div> | ||
24 | </div> | 20 | </div> |
21 | |||
22 | <div *ngIf="videoNotFound" id="video-not-found">Video not found :'(</div> | ||
25 | </div> | 23 | </div> |
26 | 24 | ||
27 | <div id="torrent-info" class="row"> | 25 | <div id="torrent-info" class="row"> |
@@ -32,7 +30,7 @@ | |||
32 | 30 | ||
33 | <div *ngIf="video !== null" id="video-info"> | 31 | <div *ngIf="video !== null" id="video-info"> |
34 | <div class="row video-name-views"> | 32 | <div class="row video-name-views"> |
35 | <div id="video-name" class="col-md-8"> | 33 | <div class="col-md-8 video-name"> |
36 | {{ video.name }} | 34 | {{ video.name }} |
37 | </div> | 35 | </div> |
38 | 36 | ||
diff --git a/client/src/app/videos/video-watch/video-watch.component.scss b/client/src/app/videos/video-watch/video-watch.component.scss index abd2832df..a8c7fdbac 100644 --- a/client/src/app/videos/video-watch/video-watch.component.scss +++ b/client/src/app/videos/video-watch/video-watch.component.scss | |||
@@ -37,10 +37,15 @@ | |||
37 | font-size: 18px; | 37 | font-size: 18px; |
38 | height: $video-watch-title-height; | 38 | height: $video-watch-title-height; |
39 | line-height: $video-watch-title-height; | 39 | line-height: $video-watch-title-height; |
40 | padding: 0 30px; | 40 | |
41 | .video-name { | ||
42 | padding-left: $video-watch-info-padding-left; | ||
43 | } | ||
41 | 44 | ||
42 | .video-views { | 45 | .video-views { |
43 | text-align: right; | 46 | text-align: right; |
47 | // Keep a symmetry with the video name | ||
48 | padding-right: $video-watch-info-padding-left | ||
44 | } | 49 | } |
45 | } | 50 | } |
46 | 51 | ||
@@ -94,6 +99,8 @@ | |||
94 | .video-small-block-author { | 99 | .video-small-block-author { |
95 | font-size: 15px; | 100 | font-size: 15px; |
96 | font-weight: bold; | 101 | font-weight: bold; |
102 | text-align: left; | ||
103 | padding-left: $video-watch-info-padding-left; | ||
97 | } | 104 | } |
98 | 105 | ||
99 | .video-small-block-share, .video-small-block-more { | 106 | .video-small-block-share, .video-small-block-more { |
@@ -144,7 +151,7 @@ | |||
144 | margin-top: 30px; | 151 | margin-top: 30px; |
145 | 152 | ||
146 | .video-details-date-description { | 153 | .video-details-date-description { |
147 | padding-left: 30px; | 154 | padding-left: $video-watch-info-padding-left; |
148 | 155 | ||
149 | .video-details-date { | 156 | .video-details-date { |
150 | font-weight: bold; | 157 | font-weight: bold; |