diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-12-06 18:04:40 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-12-06 18:04:40 +0100 |
commit | 6a9e1d42f878c55ac5e2af8a1c98e6fe28a04f36 (patch) | |
tree | 3485a0d7fa8858dc42d9d5fdf37784144c62e651 /client/src/app/videos | |
parent | b1fa3eba70dbd7d9e5b795ad251e293c88ebeee2 (diff) | |
download | PeerTube-6a9e1d42f878c55ac5e2af8a1c98e6fe28a04f36.tar.gz PeerTube-6a9e1d42f878c55ac5e2af8a1c98e6fe28a04f36.tar.zst PeerTube-6a9e1d42f878c55ac5e2af8a1c98e6fe28a04f36.zip |
Add likes/dislikes bar
Diffstat (limited to 'client/src/app/videos')
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch.component.html | 10 | ||||
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch.component.scss | 23 |
2 files changed, 28 insertions, 5 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 f31e82bff..b17392ff1 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.html +++ b/client/src/app/videos/+video-watch/video-watch.component.html | |||
@@ -73,8 +73,14 @@ | |||
73 | </div> | 73 | </div> |
74 | </div> | 74 | </div> |
75 | 75 | ||
76 | <div class="video-info-date-views"> | 76 | <div class="video-info-date-views-bar"> |
77 | {{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views | 77 | <div class="video-info-date-views"> |
78 | {{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views | ||
79 | </div> | ||
80 | |||
81 | <div class="video-info-likes-dislikes-bar"> | ||
82 | <div class="likes-bar" [ngStyle]="{ 'width.%': video.likesPercent }"></div> | ||
83 | </div> | ||
78 | </div> | 84 | </div> |
79 | 85 | ||
80 | <div class="video-info-channel"> | 86 | <div class="video-info-channel"> |
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 7bcfeb7c3..5064ceb95 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.scss +++ b/client/src/app/videos/+video-watch/video-watch.component.scss | |||
@@ -84,9 +84,26 @@ | |||
84 | } | 84 | } |
85 | } | 85 | } |
86 | 86 | ||
87 | .video-info-date-views { | 87 | .video-info-date-views-bar { |
88 | font-size: 16px; | 88 | display: flex; |
89 | margin-bottom: 10px; | 89 | |
90 | .video-info-date-views { | ||
91 | font-size: 16px; | ||
92 | margin-bottom: 10px; | ||
93 | flex-grow: 1; | ||
94 | } | ||
95 | |||
96 | .video-info-likes-dislikes-bar { | ||
97 | height: 5px; | ||
98 | width: 186px; | ||
99 | background-color: #E5E5E5; | ||
100 | margin-top: 25px; | ||
101 | |||
102 | .likes-bar { | ||
103 | height: 100%; | ||
104 | background-color: #39CC0B; | ||
105 | } | ||
106 | } | ||
90 | } | 107 | } |
91 | 108 | ||
92 | .video-info-channel { | 109 | .video-info-channel { |