From b1f3b635edf48949d268ce3d72fc33f126932a21 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 8 Apr 2020 14:05:55 +0200 Subject: Improve admin tables row expand --- .../video-redundancies-list.component.html | 22 ++++++++++++++-------- .../video-redundancies-list.component.scss | 2 +- .../video-redundancies-list.component.ts | 6 ++++++ 3 files changed, 21 insertions(+), 9 deletions(-) (limited to 'client/src/app/+admin/follows') diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html index 80c66ec60..18d88c20c 100644 --- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html +++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html @@ -1,6 +1,4 @@
-
Video redundancies list
-
@@ -19,6 +17,7 @@ > + Strategy Video name Video URL @@ -27,8 +26,15 @@ - - + + + + + + + + + {{ getRedundancyStrategy(redundancy) }} {{ redundancy.name }} @@ -46,16 +52,16 @@ - - + +
- - + +
diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.scss b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.scss index 05018c281..e1085cd1b 100644 --- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.scss +++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.scss @@ -6,7 +6,7 @@ } .admin-sub-header { - align-items: flex-end; + justify-content: flex-end; .select-filter-block { &:not(:last-child) { diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts index 2edee99a3..d563b4e95 100644 --- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts +++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts @@ -65,6 +65,12 @@ export class VideoRedundanciesListComponent extends RestTable implements OnInit }) } + getColspan () { + if (this.isDisplayingRemoteVideos()) return 3 + + return 2 + } + isDisplayingRemoteVideos () { return this.displayType === 'remote-videos' } -- cgit v1.2.3