mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-10 22:22:21 +08:00
fixed lint warning
This commit is contained in:
parent
b21fb91dcb
commit
6fcffeb8f3
1 changed files with 14 additions and 14 deletions
|
|
@ -186,6 +186,20 @@ export function clearRandom() {
|
|||
randomTheme = null;
|
||||
}
|
||||
|
||||
export function applyCustomBackgroundSize() {
|
||||
if (Config.customBackgroundSize == "max") {
|
||||
$(".customBackground img").css({
|
||||
// width: "calc(100%)",
|
||||
// height: "calc(100%)",
|
||||
objectFit: "",
|
||||
});
|
||||
} else if (Config.customBackgroundSize != "") {
|
||||
$(".customBackground img").css({
|
||||
objectFit: Config.customBackgroundSize,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export function applyCustomBackground() {
|
||||
// $(".customBackground").css({
|
||||
// backgroundImage: `url(${Config.customBackground})`,
|
||||
|
|
@ -204,17 +218,3 @@ export function applyCustomBackground() {
|
|||
applyCustomBackgroundSize();
|
||||
}
|
||||
}
|
||||
|
||||
export function applyCustomBackgroundSize() {
|
||||
if (Config.customBackgroundSize == "max") {
|
||||
$(".customBackground img").css({
|
||||
// width: "calc(100%)",
|
||||
// height: "calc(100%)",
|
||||
objectFit: "",
|
||||
});
|
||||
} else if (Config.customBackgroundSize != "") {
|
||||
$(".customBackground img").css({
|
||||
objectFit: Config.customBackgroundSize,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue