From 554facfc057294794654d23b54727912dacfcdac Mon Sep 17 00:00:00 2001 From: HighImKevin Date: Thu, 13 Nov 2025 04:41:27 -0500 Subject: [PATCH] Fix Watchlist button focus in TV display mode (closes #14) --- watchlist.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/watchlist.js b/watchlist.js index 86750c7..c4e340a 100644 --- a/watchlist.js +++ b/watchlist.js @@ -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';