From dc6dd5f5a2e43753341e2d379b7e41d38a97de26 Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Sat, 22 Aug 2020 00:47:18 -0400 Subject: [PATCH] Added support for "large" sized cards --- .../recent-videos/recent-videos.component.html | 4 ++-- .../recent-videos/recent-videos.component.scss | 10 +++++++++- .../unified-file-card.component.html | 6 +++--- .../unified-file-card.component.scss | 13 +++++++++++++ .../about-dialog/about-dialog.component.html | 2 +- 5 files changed, 28 insertions(+), 7 deletions(-) diff --git a/src/app/components/recent-videos/recent-videos.component.html b/src/app/components/recent-videos/recent-videos.component.html index f2a7c0c..5c36084 100644 --- a/src/app/components/recent-videos/recent-videos.component.html +++ b/src/app/components/recent-videos/recent-videos.component.html @@ -17,7 +17,7 @@
-

My videos

+

My videos

@@ -30,7 +30,7 @@
-
+
diff --git a/src/app/components/recent-videos/recent-videos.component.scss b/src/app/components/recent-videos/recent-videos.component.scss index f695e16..c580895 100644 --- a/src/app/components/recent-videos/recent-videos.component.scss +++ b/src/app/components/recent-videos/recent-videos.component.scss @@ -1,4 +1,12 @@ -.file-col { +.large-col { + max-width: 320px; +} + +.medium-col { + max-width: 240px; +} + +.small-col { max-width: 240px; } diff --git a/src/app/components/unified-file-card/unified-file-card.component.html b/src/app/components/unified-file-card/unified-file-card.component.html index 82377f5..79a8437 100644 --- a/src/app/components/unified-file-card/unified-file-card.component.html +++ b/src/app/components/unified-file-card/unified-file-card.component.html @@ -21,11 +21,11 @@ - +
- Thumbnail + Thumbnail
{{file_length}}
@@ -33,7 +33,7 @@
- {{!is_playlist ? file_obj.title : file_obj.name}} + {{card_size === 'large' && file_obj.uploader ? file_obj.uploader + ' - ' : ''}}{{!is_playlist ? file_obj.title : file_obj.name}}
diff --git a/src/app/components/unified-file-card/unified-file-card.component.scss b/src/app/components/unified-file-card/unified-file-card.component.scss index 1de9655..e11761f 100644 --- a/src/app/components/unified-file-card/unified-file-card.component.scss +++ b/src/app/components/unified-file-card/unified-file-card.component.scss @@ -1,3 +1,10 @@ +.large-mat-card { + width: 300px; + height: 250px; + padding: 0px; + cursor: pointer; +} + .file-mat-card { width: 200px; height: 200px; @@ -26,6 +33,12 @@ justify-content: center; } +.image-large { + width: 300px; + height: 167.5px; + object-fit: cover; +} + .image { width: 200px; height: 112.5px; diff --git a/src/app/dialogs/about-dialog/about-dialog.component.html b/src/app/dialogs/about-dialog/about-dialog.component.html index e0941b4..ddf28f0 100644 --- a/src/app/dialogs/about-dialog/about-dialog.component.html +++ b/src/app/dialogs/about-dialog/about-dialog.component.html @@ -40,7 +40,7 @@
- + Large