From 1dbfb14230f7df6559ad52c6d7f7ebb3409bbea9 Mon Sep 17 00:00:00 2001 From: Emil Carlsson Date: Wed, 21 Jul 2021 12:15:07 +0200 Subject: [PATCH] Show video duration in thumbnail (#269) (#291) * Show video duration in thumbnail (#269) * Inverse color theme and reduce horizontal padding * Move video duration to thumbnail --- src/components/FeedPage.vue | 13 ++++++++----- src/components/SearchResults.vue | 12 ++++++++---- src/components/VideoItem.vue | 29 ++++++++++++++++------------- 3 files changed, 32 insertions(+), 22 deletions(-) diff --git a/src/components/FeedPage.vue b/src/components/FeedPage.vue index 5b95ce8e..2ce13ffd 100644 --- a/src/components/FeedPage.vue +++ b/src/components/FeedPage.vue @@ -18,7 +18,14 @@ >
- thumbnail +
+ thumbnail + {{ timeFormat(video.duration) }} +

{{ video.title }}

@@ -42,10 +49,6 @@
- {{ timeFormat(video.duration) }} - -
- diff --git a/src/components/SearchResults.vue b/src/components/SearchResults.vue index c7ab748e..38721d06 100644 --- a/src/components/SearchResults.vue +++ b/src/components/SearchResults.vue @@ -27,7 +27,14 @@ >
- +
+ + {{ timeFormat(result.duration) }} +

{{ result.name }} 

- - {{ timeFormat(result.duration) }} - {{ result.uploadDate }} diff --git a/src/components/VideoItem.vue b/src/components/VideoItem.vue index e4074f6c..b843bc6e 100644 --- a/src/components/VideoItem.vue +++ b/src/components/VideoItem.vue @@ -1,14 +1,21 @@