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

add code suggestions

This commit is contained in:
dkanada 2020-07-13 01:21:46 +09:00
parent aa9059d077
commit 03a00fc612
7 changed files with 7 additions and 8 deletions

View file

@ -1468,7 +1468,7 @@ import 'programStyles';
let additionalCardContent = '';
if (layoutManager.desktop) {
if (layoutManager.desktop && !options.disableHoverMenu) {
additionalCardContent += getHoverMenuHtml(item, action, options);
}
@ -1483,7 +1483,6 @@ import 'programStyles';
* @returns {string} HTML markup of the card overlay.
*/
function getHoverMenuHtml(item, action, options) {
if (options.disableHoverMenu) return;
let html = '';
html += '<div class="cardOverlayContainer itemAction" data-action="' + action + '">';