Skip to content

Commit 443335e

Browse files
committed
fix: update header background file modification
1 parent ad2a5cc commit 443335e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

api/src/unraid-api/unraid-file-modifier/modifications/default-azure-css.modification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ export default class DefaultAzureCssModification extends FileModification {
5050
const before = source.slice(0, insertIndex);
5151
const after = source.slice(insertIndex);
5252

53-
return `${before}\n@scope (:root) to (.unapi) {${after}\n}`;
53+
return `${before}\n@scope (:root) to (.unapi) {${after.replace(/background-color:\s*#f2f2f2/g, 'background-color: var(--header-background-color)')}\n}`;
5454
}
5555
}

api/src/unraid-api/unraid-file-modifier/modifications/default-black-css.modification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ export default class DefaultBlackCssModification extends FileModification {
5050
const before = source.slice(0, insertIndex);
5151
const after = source.slice(insertIndex);
5252

53-
return `${before}\n@scope (:root) to (.unapi) {${after}\n}`;
53+
return `${before}\n@scope (:root) to (.unapi) {${after.replace(/background-color:\s*#f2f2f2/g, 'background-color: var(--header-background-color)')}\n}`;
5454
}
5555
}

api/src/unraid-api/unraid-file-modifier/modifications/default-gray-css.modification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ export default class DefaultGrayCssModification extends FileModification {
5050
const before = source.slice(0, insertIndex);
5151
const after = source.slice(insertIndex);
5252

53-
return `${before}\n@scope (:root) to (.unapi) {${after}\n}`;
53+
return `${before}\n@scope (:root) to (.unapi) {${after.replace(/background-color:\s*#f2f2f2/g, 'background-color: var(--header-background-color)')}\n}`;
5454
}
5555
}

api/src/unraid-api/unraid-file-modifier/modifications/default-white-css.modification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ export default class DefaultWhiteCssModification extends FileModification {
5757
const before = source.slice(0, insertIndex);
5858
const after = source.slice(insertIndex);
5959

60-
return `${before}\n@scope (:root) to (.unapi) {${after}\n}`;
60+
return `${before}\n@scope (:root) to (.unapi) {${after.replace(/background-color:\s*#f2f2f2/g, 'background-color: var(--header-background-color)')}\n}`;
6161
}
6262
}

0 commit comments

Comments
 (0)