Fix Watchlist button focus in TV display mode (closes #14)

This commit is contained in:
HighImKevin
2025-11-13 04:41:27 -05:00
parent 0bdfe971bb
commit 554facfc05
+3 -1
View File
@@ -6145,10 +6145,12 @@ In the Custom Tabs plugin, add a new tab with the following HTML content:
if (existingButton) {
return;
}
const isTVLayout = document.getRootNode().documentElement.className.includes('layout-tv')
const watchlistIcon = document.createElement('button');
watchlistIcon.setAttribute("is", "emby-button");
watchlistIcon.className = 'watchlist-icon detailButton emby-button button-flat';
watchlistIcon.className = `watchlist-icon detailButton emby-button button-flat${isTVLayout ? ' show-focus' : ''}`;
watchlistIcon.title = "Add to Watchlist";
watchlistIcon.dataset.active = 'false';