From b2731bff2834fb6aacf166cf435030bf96eb12f3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 12 Dec 2017 14:41:59 +0100 Subject: [PATCH] Small style fixes --- client/.angular-cli.json | 2 +- .../account-videos/account-videos.component.html | 2 +- .../account-videos/account-videos.component.scss | 10 +++++++++- .../account-videos/account-videos.component.ts | 2 ++ client/src/app/menu/menu.component.html | 4 ++++ .../src/app/shared/video/abstract-video-list.ts | 12 +++++++++--- .../+video-watch/video-watch.component.scss | 15 ++++++++++----- .../videos/+video-watch/video-watch.component.ts | 8 ++++++-- .../video-list/video-recently-added.component.ts | 2 ++ .../videos/video-list/video-search.component.ts | 2 ++ .../videos/video-list/video-trending.component.ts | 2 ++ client/src/sass/video-js-custom.scss | 1 + 12 files changed, 49 insertions(+), 13 deletions(-) diff --git a/client/.angular-cli.json b/client/.angular-cli.json index e277f96b8..9ed4a7ab3 100644 --- a/client/.angular-cli.json +++ b/client/.angular-cli.json @@ -9,7 +9,7 @@ "outDir": "dist", "deployUrl": "client/", "assets": [ - { "glob": "**/*", "input": "./assets/images", "output": "./client/assets/" } + { "glob": "**/*", "input": "./assets/images", "output": "./client/assets/images" } ], "index": "index.html", "main": "main.ts", 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 @@