Skip to content

Commit 59a6004

Browse files
committed
fix(test config): applying preset doesnt show punctuation and numbers
1 parent 568012a commit 59a6004

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

frontend/src/ts/test/test-config.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,20 @@ export async function instantUpdate(): Promise<void> {
3131
$("#testConfig .zen").addClass("hidden");
3232

3333
if (Config.mode === "time") {
34-
$("#testConfig .puncAndNum").removeClass("hidden");
34+
$("#testConfig .puncAndNum").removeClass("hidden").css({
35+
width: "",
36+
opacity: "",
37+
});
3538
$("#testConfig .leftSpacer").removeClass("scrolled");
3639
$("#testConfig .rightSpacer").removeClass("scrolled");
3740
$("#testConfig .time").removeClass("hidden");
3841

3942
updateActiveExtraButtons("time", Config.time);
4043
} else if (Config.mode === "words") {
41-
$("#testConfig .puncAndNum").removeClass("hidden");
44+
$("#testConfig .puncAndNum").removeClass("hidden").css({
45+
width: "",
46+
opacity: "",
47+
});
4248
$("#testConfig .leftSpacer").removeClass("scrolled");
4349
$("#testConfig .rightSpacer").removeClass("scrolled");
4450
$("#testConfig .wordCount").removeClass("hidden");
@@ -50,7 +56,10 @@ export async function instantUpdate(): Promise<void> {
5056

5157
updateActiveExtraButtons("quoteLength", Config.quoteLength);
5258
} else if (Config.mode === "custom") {
53-
$("#testConfig .puncAndNum").removeClass("hidden");
59+
$("#testConfig .puncAndNum").removeClass("hidden").css({
60+
width: "",
61+
opacity: "",
62+
});
5463
$("#testConfig .leftSpacer").removeClass("scrolled");
5564
$("#testConfig .rightSpacer").removeClass("scrolled");
5665
$("#testConfig .customText").removeClass("hidden");

0 commit comments

Comments
 (0)