From 9d51a66efd31323143d2557c63f01fd22bf4ea8a Mon Sep 17 00:00:00 2001 From: Marc Berchtold Date: Wed, 5 Sep 2018 16:00:12 +0200 Subject: [PATCH] Fix sorting media list timing | Make client & media list scrollable with fixed height --- .../src/app/client/client.component.html | 170 +++++++++--------- .../src/app/media/media.component.html | 2 +- frontend-app/src/app/media/media.component.ts | 1 + frontend-app/src/styles.scss | 2 +- 4 files changed, 89 insertions(+), 86 deletions(-) diff --git a/frontend-app/src/app/client/client.component.html b/frontend-app/src/app/client/client.component.html index 059b456..bb7c9e9 100644 --- a/frontend-app/src/app/client/client.component.html +++ b/frontend-app/src/app/client/client.component.html @@ -3,91 +3,93 @@

Clients

Loading Clients and MediaList from Backend -
-
-
-
- - - Text - Timer +
+
+
+
+
+ + + Text + Timer +
-
-
-
- {{client?.clientname}} - - -
-
- {{client?.media?.type && client?.media?.type.charAt(0).toUpperCase() + client?.media?.type.slice(1)}} - - {{(client?.media?.content.length>20)? (client?.media?.content | slice:0:20)+'...':(client?.media?.content)}} - - {{client?.media?.content.split('/')[client?.media?.content.split('/').length-1].split('.')[0]}} -
-
- - {{client?.audio_background_mediaid?.split('/')[client?.audio_background_mediaid?.split('/').length-1]}} -
-

{{client.video_curenttime?.current | number:'1.0-0'}}/{{client.video_curenttime?.total | number:'1.0-0'}}

-
- - -
-
- - - +
+
+ {{client?.clientname}} + + +
+
+ {{client?.media?.type && client?.media?.type.charAt(0).toUpperCase() + client?.media?.type.slice(1)}} + - {{(client?.media?.content.length>20)? (client?.media?.content | slice:0:20)+'...':(client?.media?.content)}} + - {{client?.media?.content.split('/')[client?.media?.content.split('/').length-1].split('.')[0]}} +
+
+ + {{client?.audio_background_mediaid?.split('/')[client?.audio_background_mediaid?.split('/').length-1]}} +
+

{{client.video_curenttime?.current | number:'1.0-0'}}/{{client.video_curenttime?.total | number:'1.0-0'}}

+
+ + +
+
+ + + +
diff --git a/frontend-app/src/app/media/media.component.html b/frontend-app/src/app/media/media.component.html index 31c9c74..04b8c5a 100644 --- a/frontend-app/src/app/media/media.component.html +++ b/frontend-app/src/app/media/media.component.html @@ -6,7 +6,7 @@

Media

-
+
diff --git a/frontend-app/src/app/media/media.component.ts b/frontend-app/src/app/media/media.component.ts index e06aac4..062ee98 100644 --- a/frontend-app/src/app/media/media.component.ts +++ b/frontend-app/src/app/media/media.component.ts @@ -40,6 +40,7 @@ export class MediaComponent implements OnInit { this.mediaList[mediaTopDir.name] = []; } } + this.sortMediaList(); }); this.clientsService.getClients().then(clients => { this.clientsLoading = false; diff --git a/frontend-app/src/styles.scss b/frontend-app/src/styles.scss index 5c1f93c..a15b5ba 100644 --- a/frontend-app/src/styles.scss +++ b/frontend-app/src/styles.scss @@ -28,4 +28,4 @@ $container-max-widths: ( column-count: 6; column-gap: 1rem; } -} +} \ No newline at end of file