linting fixes

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner
2025-11-17 22:55:21 +00:00
parent ce572e6978
commit a978ab6b31
4 changed files with 10 additions and 8 deletions

View File

@@ -891,8 +891,8 @@ $(() => {
maintainAspectRatio: true,
elements: {
arc: {
borderColor: $("\.card").css("background-color"),
hoverBorderColor: $("\.card").css("background-color"),
borderColor: $(".card").css("background-color"),
hoverBorderColor: $(".card").css("background-color"),
hoverOffset: 10,
},
},
@@ -942,8 +942,8 @@ $(() => {
maintainAspectRatio: true,
elements: {
arc: {
borderColor: $("\.card").css("background-color"),
hoverBorderColor: $("\.card").css("background-color"),
borderColor: $(".card").css("background-color"),
hoverBorderColor: $(".card").css("background-color"),
hoverOffset: 10,
},
},

View File

@@ -382,7 +382,7 @@ function applyOnlyChanged() {
);
// Hide all boxes with data-key attribute, except the ones with "data-modified='true'" attribute
$(".card-title[data-key]").not("[data-modified='true']").closest("\.card").hide();
$(".card-title[data-key]").not("[data-modified='true']").closest(".card").hide();
} else {
// Show the tabs menu and activate only the first button (deactivate other buttons)
$("#advanced-settings-menu").show();
@@ -393,7 +393,7 @@ function applyOnlyChanged() {
$("#advanced-settings-tabs > .tab-pane:not(:first-child)").removeClass("in active");
// Show all boxes with data-key attribute
$(".card-title[data-key]").closest("\.card").show();
$(".card-title[data-key]").closest(".card").show();
}
}

View File

@@ -340,7 +340,7 @@ $(() => {
maintainAspectRatio: true,
elements: {
arc: {
borderColor: $("\.card").css("background-color"),
borderColor: $(".card").css("background-color"),
},
},
plugins: {

View File

@@ -1191,7 +1191,9 @@ table.dataTable tbody > tr > .selected {
}
/* Settings containers without modified items and with hidden boxes will display this text */
.settings-container:not(:has(h3[data-modified="true"])):has(.card[style*="display: none;"])::before {
.settings-container:not(:has(h3[data-modified="true"])):has(
.card[style*="display: none;"]
)::before {
content: "No modified settings to display";
opacity: 0.7;
font-style: italic;