diff --git a/frontend/src/styles/test.scss b/frontend/src/styles/test.scss
index feee0ce2c..49fc7d91e 100644
--- a/frontend/src/styles/test.scss
+++ b/frontend/src/styles/test.scss
@@ -1027,7 +1027,7 @@
margin-bottom: 1rem;
.puncAndNum {
// transition: 0.25s cubic-bezier(0.37, 0, 0.63, 1);
- overflow: hidden;
+ // overflow: hidden;
opacity: 1;
}
.row {
@@ -1039,13 +1039,14 @@
}
.spacer {
height: auto;
- width: 0.25rem;
+ width: 0.5em;
border-radius: calc(var(--roundness) / 2);
background: var(--bg-color);
- margin: 0.5rem 0;
+ margin: 0.75em 0;
+ transition: 250ms;
&.scrolled {
+ opacity: 0;
width: 0;
- margin: auto 0;
}
}
@@ -1053,10 +1054,9 @@
.time,
.customText {
.textButton {
- // line-height: 1.4em;
+ align-self: end;
span {
- // height: 1.1em;
- margin-top: 0.12em;
+ line-height: 1.15;
}
}
}
@@ -1074,19 +1074,14 @@
.textButton {
padding: var(--verticalPadding) var(--horizontalPadding);
- --double: calc(var(--horizontalPadding) * 2);
-
&:first-child {
- padding: var(--verticalPadding) var(--horizontalPadding)
- var(--verticalPadding) var(--double);
+ margin-left: var(--horizontalPadding);
}
&:last-child {
- padding: var(--verticalPadding) var(--double) var(--verticalPadding)
- var(--horizontalPadding);
+ margin-right: var(--horizontalPadding);
}
&:only-child {
- padding: var(--verticalPadding) var(--double) var(--verticalPadding)
- var(--double);
+ margin-inline: var(--horizontalPadding);
}
}
}
@@ -1094,11 +1089,11 @@
.wordCount,
.customText,
.zen,
- .quoteLength,
+ .quoteLength {
+ justify-content: end;
+ }
.puncAndNum {
- // width: 100%;
- justify-content: center;
- overflow: hidden;
+ justify-content: start;
}
.customText {
display: grid;
@@ -1176,7 +1171,7 @@
user-select: none;
.textButton {
- margin: 0 0.5rem;
+ padding: 0.5em 1em;
&.noInteraction {
pointer-events: none;
}
diff --git a/frontend/src/ts/controllers/input-controller.ts b/frontend/src/ts/controllers/input-controller.ts
index 091544f56..ab14f9930 100644
--- a/frontend/src/ts/controllers/input-controller.ts
+++ b/frontend/src/ts/controllers/input-controller.ts
@@ -927,7 +927,7 @@ $(document).on("keydown", async (event) => {
if (
allowTyping &&
!wordsFocused &&
- !["Enter", "Tab", ...ModifierKeys].includes(event.key)
+ !["Enter", " ", "Escape", "Tab", ...ModifierKeys].includes(event.key)
) {
TestUI.focusWords();
if (Config.showOutOfFocusWarning && !event.ctrlKey && !event.metaKey) {
diff --git a/frontend/src/ts/elements/modes-notice.ts b/frontend/src/ts/elements/modes-notice.ts
index 06aeccca0..4456dbc10 100644
--- a/frontend/src/ts/elements/modes-notice.ts
+++ b/frontend/src/ts/elements/modes-notice.ts
@@ -93,32 +93,32 @@ export async function update(): Promise
{
if (Config.mode !== "zen") {
$(".pageTest #testModesNotice").append(
- `${getLanguageDisplayString(
+ `
`
+ )}`
);
}
if (Config.difficulty === "expert") {
$(".pageTest #testModesNotice").append(
- `expert
`
+ ``
);
} else if (Config.difficulty === "master") {
$(".pageTest #testModesNotice").append(
- `master
`
+ ``
);
}
if (Config.blindMode) {
$(".pageTest #testModesNotice").append(
- `blind
`
+ ``
);
}
if (Config.lazyMode) {
$(".pageTest #testModesNotice").append(
- `lazy
`
+ ``
);
}
@@ -132,7 +132,7 @@ export async function update(): Promise {
});
$(".pageTest #testModesNotice").append(
- `${
+ `
`
+ } pace ${speed}`
);
}
@@ -165,76 +165,76 @@ export async function update(): Promise {
const text = `${avgWPMText} ${avgAccText}`.trim();
$(".pageTest #testModesNotice").append(
- `avg: ${text}
`
+ ``
);
}
}
if (Config.minWpm !== "off") {
$(".pageTest #testModesNotice").append(
- `min ${Format.typingSpeed(
+ `
`
+ )}`
);
}
if (Config.minAcc !== "off") {
$(".pageTest #testModesNotice").append(
- `min ${Config.minAccCustom}% acc
`
+ ``
);
}
if (Config.minBurst !== "off") {
$(".pageTest #testModesNotice").append(
- `min ${Format.typingSpeed(
+ `
`
+ }`
);
}
if (Config.funbox !== "none") {
$(".pageTest #testModesNotice").append(
- `${Config.funbox
+ `
`
+ .replace(/#/g, ", ")}`
);
}
if (Config.confidenceMode === "on") {
$(".pageTest #testModesNotice").append(
- `confidence
`
+ ``
);
}
if (Config.confidenceMode === "max") {
$(".pageTest #testModesNotice").append(
- `max confidence
`
+ ``
);
}
if (Config.stopOnError !== "off") {
$(".pageTest #testModesNotice").append(
- `stop on ${Config.stopOnError}
`
+ ``
);
}
if (Config.layout !== "default") {
$(".pageTest #testModesNotice").append(
- `emulating ${Config.layout.replace(
+ `
`
+ )}`
);
}
if (Config.oppositeShiftMode !== "off") {
$(".pageTest #testModesNotice").append(
- `opposite shift${
+ `
`
+ }`
);
}
@@ -248,10 +248,10 @@ export async function update(): Promise {
if (tagsString !== "") {
$(".pageTest #testModesNotice").append(
- `${tagsString.substring(
+ `
`
+ )}`
);
}
} catch {}
diff --git a/frontend/src/ts/test/test-config.ts b/frontend/src/ts/test/test-config.ts
index d98a466df..c4014c6f6 100644
--- a/frontend/src/ts/test/test-config.ts
+++ b/frontend/src/ts/test/test-config.ts
@@ -21,6 +21,7 @@ export async function instantUpdate(): Promise {
$("#testConfig .puncAndNum").css({
width: 0,
opacity: 0,
+ visibility: "hidden",
});
$("#testConfig .spacer").addClass("scrolled");
$("#testConfig .time").addClass("hidden");
@@ -33,6 +34,7 @@ export async function instantUpdate(): Promise {
$("#testConfig .puncAndNum").css({
width: "unset",
opacity: 1,
+ visibility: "visible",
});
$("#testConfig .leftSpacer").removeClass("scrolled");
$("#testConfig .rightSpacer").removeClass("scrolled");
@@ -43,6 +45,7 @@ export async function instantUpdate(): Promise {
$("#testConfig .puncAndNum").css({
width: "unset",
opacity: 1,
+ visibility: "visible",
});
$("#testConfig .leftSpacer").removeClass("scrolled");
@@ -60,6 +63,7 @@ export async function instantUpdate(): Promise {
$("#testConfig .puncAndNum").css({
width: "unset",
opacity: 1,
+ visibility: "visible",
});
$("#testConfig .leftSpacer").removeClass("scrolled");
@@ -139,6 +143,7 @@ export async function update(
.css({
opacity: puncAndNumVisible[current] ? 0 : 1,
width: previousWidth,
+ visibility: "visible",
})
.animate(
{
@@ -150,6 +155,8 @@ export async function update(
() => {
if (currentWidth !== 0) {
puncAndNumEl.css("width", "unset");
+ } else {
+ puncAndNumEl.css("visibility", "hidden");
}
}
);