From b1f3b635edf48949d268ce3d72fc33f126932a21 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 8 Apr 2020 14:05:55 +0200 Subject: [PATCH] Improve admin tables row expand --- .../video-redundancies-list.component.html | 22 ++++++++++++------- .../video-redundancies-list.component.scss | 2 +- .../video-redundancies-list.component.ts | 6 +++++ .../video-abuse-list.component.html | 3 ++- .../video-blacklist-list.component.html | 3 ++- .../+admin/system/jobs/jobs.component.html | 11 +++++++--- .../+admin/system/jobs/jobs.component.scss | 2 +- .../my-account-video-imports.component.html | 4 ++-- 8 files changed, 36 insertions(+), 17 deletions(-) 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' } diff --git a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html index 30eb2dbde..b25412c99 100644 --- a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html +++ b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html @@ -15,8 +15,9 @@ + - + diff --git a/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.html b/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.html index a0b89acc6..4f9a6c18c 100644 --- a/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.html +++ b/client/src/app/+admin/moderation/video-blacklist-list/video-blacklist-list.component.html @@ -15,8 +15,9 @@ + - + diff --git a/client/src/app/+admin/system/jobs/jobs.component.html b/client/src/app/+admin/system/jobs/jobs.component.html index b0f68eadd..3dd4e8a2a 100644 --- a/client/src/app/+admin/system/jobs/jobs.component.html +++ b/client/src/app/+admin/system/jobs/jobs.component.html @@ -1,6 +1,4 @@
-
Jobs list
-
@@ -27,6 +25,7 @@ > + ID Type Created @@ -35,7 +34,13 @@ - + + + + + + + {{ job.id }} {{ job.type }} {{ job.createdAt }} diff --git a/client/src/app/+admin/system/jobs/jobs.component.scss b/client/src/app/+admin/system/jobs/jobs.component.scss index 4cb706d2d..4a3de9274 100644 --- a/client/src/app/+admin/system/jobs/jobs.component.scss +++ b/client/src/app/+admin/system/jobs/jobs.component.scss @@ -18,7 +18,7 @@ } .admin-sub-header { - align-items: flex-end; + justify-content: flex-end; .select-filter-block { &:not(:last-child) { diff --git a/client/src/app/+my-account/my-account-video-imports/my-account-video-imports.component.html b/client/src/app/+my-account/my-account-video-imports/my-account-video-imports.component.html index 329948cb5..922664338 100644 --- a/client/src/app/+my-account/my-account-video-imports/my-account-video-imports.component.html +++ b/client/src/app/+my-account/my-account-video-imports/my-account-video-imports.component.html @@ -15,8 +15,8 @@ - - + + -- 2.25.1