Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

format code

Christian Fei148d17ac9eb4
diff --git a/client/components/video-element.js b/client/components/video-element.js
index 8afd7e3..eadce2a 100644
--- a/client/components/video-element.js
+++ b/client/components/video-element.js
@@ -41,7 +41,9 @@ class VideoElement extends HTMLElement {
<span class="channel-name">${this.video.channelName}</span>
<br>
<div class="flex">
- <span>${new Date(this.video.publishedAt).toISOString().substring(0, 10)}</span><span>${this.video.viewCount}</span><span>${this.video.duration || 'N/A'}</span><br/>
+ <span>${new Date(this.video.publishedAt).toISOString().substring(0, 10)}</span>
+ <span>${this.video.viewCount}</span>
+ <span>${this.video.duration || 'N/A'}</span><br/>
</div>
</div>
<h4 class="title">${this.video.title}</h4>