fixed no error border not applied to words history

This commit is contained in:
Miodec 2022-01-08 17:53:39 +01:00
parent e2864aff67
commit 34dbdfd869
2 changed files with 4 additions and 1 deletions

View file

@ -208,9 +208,11 @@ export function applyCustomBackground() {
// });
if (Config.customBackground === "") {
$("#words").removeClass("noErrorBorder");
$("#resultWordsHistory").removeClass("noErrorBorder");
$(".customBackground img").remove();
} else {
$("#words").addClass("noErrorBorder");
$("#resultWordsHistory").addClass("noErrorBorder");
let $img = $("<img>", {
src: Config.customBackground,
});

View file

@ -354,7 +354,8 @@
1px 1px 0px var(--bg-color), -1px 1px 0px var(--bg-color);
}
#words.noErrorBorder {
#words.noErrorBorder,
#resultWordsHistory.noErrorBorder {
.word.error {
text-shadow: none;
}