Skip to content

armgit / my-yt

Public Imported from GitHub
0

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

JavaScript

fix video element layout

Christian Feif574afd05dd0
diff --git a/client/components/video-element.js b/client/components/video-element.js
index a2d78e7..8daae00 100644
--- a/client/components/video-element.js
+++ b/client/components/video-element.js
@@ -38,7 +38,7 @@ class VideoElement extends HTMLElement {
</p>
</video>`
: /*html*/`<img loading="lazy" src="${this.video.thumbnail}"/>`}
- <span class="action ignore">ignore</span>
+ <span class="action ignore" tabindex="0">ignore</span>
<div class="info">
<span class="channel-name">${this.video.channelName}</span>
<br>
diff --git a/client/main.css b/client/main.css
index d63f348..cf5e47b 100644
--- a/client/main.css
+++ b/client/main.css
@@ -83,9 +83,12 @@ form {
text-decoration: none;
font-weight: bold;
padding: 5px;
+ align-self: flex-start;
/* color: black; */
/* background-color: #f0f0f0; */
margin: 5px;
+ user-select: none;
+ -webkit-user-select: none;
}
.video .action.ignore {
position: absolute;