From 4006d5232b15836191320d72890272707292b7f0 Mon Sep 17 00:00:00 2001 From: IceDBorn <51162078+IceDBorn@users.noreply.github.com> Date: Thu, 2 Sep 2021 13:28:32 +0300 Subject: [PATCH] Restyle video item (#401) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Remove 'views' text - add '•' between views and time ago - make views and time ago a one liner - add uploader avatar beside channel name * Remove uploader image beside channel name * change video channel layout * Fix title margin when there is no img source - shrink avatar size - add router-link for avatar - remove padding from title * Finalize video item styling Co-authored-by: jim3692 --- src/components/VideoItem.vue | 50 +++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 21 deletions(-) diff --git a/src/components/VideoItem.vue b/src/components/VideoItem.vue index 9c8bc883..e25c8816 100644 --- a/src/components/VideoItem.vue +++ b/src/components/VideoItem.vue @@ -23,38 +23,46 @@ >Watched -

{{ video.title }}

+ +
+

{{ video.title }}

+
-
-
+
+ + + +
+ +
+ + + + +
{{ video.uploaderName }}  -
-
-
- -
- - {{ numberFormat(video.views) }} views
+ + + + + {{ numberFormat(video.views) }} • + + + {{ video.uploadedDate }} + + + {{ timeAgo(video.uploaded) }} + +
-
- {{ video.uploadedDate }} -
-
- {{ timeAgo(video.uploaded) }} -
-
-
- - -