Skip to content

Commit

Permalink
Merge pull request #18 from CodersTV/video-time
Browse files Browse the repository at this point in the history
Fix UI of video duration
  • Loading branch information
gabrielhpugliese committed Jan 21, 2015
2 parents d93e041 + 1c4859b commit 8438e87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 3 additions & 5 deletions client/views/channels/channel.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@
min-width: 100%;
}
.duration {
padding: 3px;
padding: 4px;
position: absolute;
right: 7px;
bottom: 7px;
background-color: #5C4F4F;
color: #C0C0C0;
background-color: #666;
color: #FFF;
font-size: 16px;
-webkit-border-radius: 4px;
border-radius: 4px;

@media (min-width: 768px) {
bottom: 120px;
Expand Down
5 changes: 1 addition & 4 deletions client/views/channels/channels.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ <h1 class="oswald text-muted">Browse <em class="text-color">videos</em></h1>
{{/if}}
{{#if duration}}
<div class="duration">
{{#if duration.hours}}
{{duration.hours}}:
{{/if}}
{{duration.minutes}}:{{duration.seconds}}
{{#if $gt duration.hours 0}}{{duration.hours}}:{{/if}}{{duration.minutes}}:{{duration.seconds}}
</div>
{{/if}}
</div>
Expand Down

0 comments on commit 8438e87

Please sign in to comment.