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:
parent
aa9059d077
commit
03a00fc612
7 changed files with 7 additions and 8 deletions
|
@ -1468,7 +1468,7 @@ import 'programStyles';
|
||||||
|
|
||||||
let additionalCardContent = '';
|
let additionalCardContent = '';
|
||||||
|
|
||||||
if (layoutManager.desktop) {
|
if (layoutManager.desktop && !options.disableHoverMenu) {
|
||||||
additionalCardContent += getHoverMenuHtml(item, action, options);
|
additionalCardContent += getHoverMenuHtml(item, action, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1483,7 +1483,6 @@ import 'programStyles';
|
||||||
* @returns {string} HTML markup of the card overlay.
|
* @returns {string} HTML markup of the card overlay.
|
||||||
*/
|
*/
|
||||||
function getHoverMenuHtml(item, action, options) {
|
function getHoverMenuHtml(item, action, options) {
|
||||||
if (options.disableHoverMenu) return;
|
|
||||||
let html = '';
|
let html = '';
|
||||||
|
|
||||||
html += '<div class="cardOverlayContainer itemAction" data-action="' + action + '">';
|
html += '<div class="cardOverlayContainer itemAction" data-action="' + action + '">';
|
||||||
|
|
|
@ -450,7 +450,7 @@ html {
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttonActive {
|
.buttonActive {
|
||||||
color: #00a4dc;
|
color: #00a4dc !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card:focus .cardBox.visualCardBox,
|
.card:focus .cardBox.visualCardBox,
|
||||||
|
|
|
@ -442,7 +442,7 @@ html {
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttonActive {
|
.buttonActive {
|
||||||
color: #00a4dc;
|
color: #00a4dc !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cardBox:not(.visualCardBox) .cardPadder {
|
.cardBox:not(.visualCardBox) .cardPadder {
|
||||||
|
|
|
@ -413,7 +413,7 @@ html {
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttonActive {
|
.buttonActive {
|
||||||
color: #00a4dc;
|
color: #00a4dc !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card:focus .cardBox.visualCardBox,
|
.card:focus .cardBox.visualCardBox,
|
||||||
|
|
|
@ -428,7 +428,7 @@ html {
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttonActive {
|
.buttonActive {
|
||||||
color: #00a4dc;
|
color: #00a4dc !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cardBox:not(.visualCardBox) .cardPadder {
|
.cardBox:not(.visualCardBox) .cardPadder {
|
||||||
|
|
|
@ -543,7 +543,7 @@ a[data-role=button] {
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttonActive {
|
.buttonActive {
|
||||||
color: #4285f4;
|
color: #00a4dc !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.personCard .cardScalable {
|
.personCard .cardScalable {
|
||||||
|
|
|
@ -422,7 +422,7 @@ html {
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttonActive {
|
.buttonActive {
|
||||||
color: #00a4dc;
|
color: #00a4dc !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cardBox:not(.visualCardBox) .cardPadder {
|
.cardBox:not(.visualCardBox) .cardPadder {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue