1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add container for skip button to make it focusable

FocusManager.isCurrentlyFocusableInternal doesn't work with
fixed elements.
This commit is contained in:
Dmitry Lyzo 2025-02-02 22:32:54 +03:00
parent 16a084b009
commit 2ab61b6d7b
2 changed files with 14 additions and 5 deletions

View file

@ -49,7 +49,8 @@ class SkipSegment extends PlaybackSubscriber {
if (!this.skipElement && this.currentSegment) {
let buttonHtml = '';
buttonHtml += '<button is="emby-button" class="skip-button hide skip-button-hidden"></button>';
// FIXME: Move skip button to the video OSD
buttonHtml += '<div class="skip-button-container"><button is="emby-button" class="skip-button hide skip-button-hidden"></button></div>';
document.body.insertAdjacentHTML('beforeend', buttonHtml);