From 16074dec13165e3f3b962cb64ca4692689d618e3 Mon Sep 17 00:00:00 2001 From: Spurk Date: Fri, 6 Dec 2024 18:25:13 +1100 Subject: [PATCH] add underscore_spaces with new funbox package refactor --- frontend/src/styles/test.scss | 7 +++++++ frontend/src/ts/pages/settings.ts | 3 +++ frontend/src/ts/test/funbox/funbox-functions.ts | 12 ++++++++++++ packages/funbox/src/list.ts | 8 ++++++++ packages/funbox/src/types.ts | 3 ++- 5 files changed, 32 insertions(+), 1 deletion(-) diff --git a/frontend/src/styles/test.scss b/frontend/src/styles/test.scss index 8a437be056ff..2d06e5bb28c5 100644 --- a/frontend/src/styles/test.scss +++ b/frontend/src/styles/test.scss @@ -1338,6 +1338,13 @@ body.fb-nospace { } } +/* funbox underscore_spaces */ +body.fb-underscore-spaces { + #words .word { + margin: 0.5em 0; + } +} + /* funbox arrows */ body.fb-arrows { #words .word { diff --git a/frontend/src/ts/pages/settings.ts b/frontend/src/ts/pages/settings.ts index 5b7e507d6649..2f1cf76b0847 100644 --- a/frontend/src/ts/pages/settings.ts +++ b/frontend/src/ts/pages/settings.ts @@ -612,6 +612,9 @@ async function fillSettingsPage(): Promise { /_/g, " " )}`; + } else if (funbox.name === "underscore_spaces") { + // Display as "underscore_spaces". Does not replace underscores with spaces. + funboxElHTML += `
${funbox.name}
`; } else { funboxElHTML += `