style(typing test): remove 70 character line width limit when using tape mode

part of #5335
This commit is contained in:
Miodec 2024-04-25 22:41:30 +02:00
parent 1083910bcf
commit 68b3053f0c

View file

@ -1528,4 +1528,11 @@ ConfigEvent.subscribe((key, value) => {
$(".pageTest #restartTestButton").addClass("hidden");
}
}
if (key === "tapeMode") {
if (value === "off") {
$("#typingTest").css("max-width", "70ch");
} else {
$("#typingTest").css("max-width", "100%");
}
}
});