Skip to content

Commit 264c3f4

Browse files
committed
feat: download video img title for a11y
1 parent 7ed4a35 commit 264c3f4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

client/components/video-element.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class VideoElement extends HTMLElement {
5353
this.innerHTML = /*html*/`
5454
${this.video.downloaded
5555
? /*html*/`<div class="play video-placeholder" style="background-image: url(${this.video.thumbnail})"><div class="play-icon"></div></div>`
56-
: /*html*/`<img class="download" loading="lazy" src="${this.video.thumbnail}"/>`}
56+
: /*html*/`<img title="Download video" class="download" loading="lazy" src="${this.video.thumbnail}"/>`}
5757
<span class="action ignore" tabindex="0">ignore</span>
5858
<div class="info">
5959
<span class="channel-name">${this.video.channelName}</span>

client/main.css

+1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ input[type="text"], input[type="url"], input[type="search"] {
158158
.video img {
159159
width: 100%;
160160
height: auto;
161+
cursor: pointer;
161162
}
162163
.hide-thumbnails .video img {
163164
display: none !important;

0 commit comments

Comments
 (0)