From b2731bff2834fb6aacf166cf435030bf96eb12f3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 12 Dec 2017 14:41:59 +0100 Subject: Small style fixes --- .../account/account-videos/account-videos.component.html | 2 +- .../account/account-videos/account-videos.component.scss | 10 +++++++++- .../account/account-videos/account-videos.component.ts | 2 ++ client/src/app/menu/menu.component.html | 4 ++++ client/src/app/shared/video/abstract-video-list.ts | 12 +++++++++--- .../app/videos/+video-watch/video-watch.component.scss | 15 ++++++++++----- .../src/app/videos/+video-watch/video-watch.component.ts | 8 ++++++-- .../videos/video-list/video-recently-added.component.ts | 2 ++ .../src/app/videos/video-list/video-search.component.ts | 2 ++ .../src/app/videos/video-list/video-trending.component.ts | 2 ++ client/src/sass/video-js-custom.scss | 1 + 11 files changed, 48 insertions(+), 12 deletions(-) (limited to 'client/src') diff --git a/client/src/app/account/account-videos/account-videos.component.html b/client/src/app/account/account-videos/account-videos.component.html index f69c0487d..4f3a774bd 100644 --- a/client/src/app/account/account-videos/account-videos.component.html +++ b/client/src/app/account/account-videos/account-videos.component.html @@ -12,7 +12,7 @@
-
{{ video.name }}
+ {{ video.name }} {{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
diff --git a/client/src/app/account/account-videos/account-videos.component.scss b/client/src/app/account/account-videos/account-videos.component.scss index 28b298c3d..0d478edd7 100644 --- a/client/src/app/account/account-videos/account-videos.component.scss +++ b/client/src/app/account/account-videos/account-videos.component.scss @@ -43,7 +43,7 @@ .video { display: flex; - height: 130px; + min-height: 130px; padding-bottom: 20px; input[type=checkbox] { @@ -68,6 +68,10 @@ flex-grow: 1; .video-info-name { + @include disable-default-a-behaviour; + + color: #000; + display: block; font-size: 16px; font-weight: $font-semibold; } @@ -76,6 +80,10 @@ font-size: 13px; } } + + .video-buttons { + min-width: 190px; + } } @media screen and (max-width: 800px) { diff --git a/client/src/app/account/account-videos/account-videos.component.ts b/client/src/app/account/account-videos/account-videos.component.ts index 5f12cfce0..22941619d 100644 --- a/client/src/app/account/account-videos/account-videos.component.ts +++ b/client/src/app/account/account-videos/account-videos.component.ts @@ -4,6 +4,7 @@ import { NotificationsService } from 'angular2-notifications' import 'rxjs/add/observable/from' import 'rxjs/add/operator/concatAll' import { Observable } from 'rxjs/Observable' +import { AuthService } from '../../core/auth' import { ConfirmService } from '../../core/confirm' import { AbstractVideoList } from '../../shared/video/abstract-video-list' import { Video } from '../../shared/video/video.model' @@ -21,6 +22,7 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit constructor (protected router: Router, protected route: ActivatedRoute, + protected authService: AuthService, protected notificationsService: NotificationsService, protected confirmService: ConfirmService, private videoService: VideoService) { diff --git a/client/src/app/menu/menu.component.html b/client/src/app/menu/menu.component.html index 2671dd90b..6f52f4f45 100644 --- a/client/src/app/menu/menu.component.html +++ b/client/src/app/menu/menu.component.html @@ -12,6 +12,10 @@