Skip to content

fix(tape mode): support mixed-direction words (@nadalaba)#7792

Open
nadalaba wants to merge 10 commits into
monkeytypegame:masterfrom
nadalaba:mixed-tape
Open

fix(tape mode): support mixed-direction words (@nadalaba)#7792
nadalaba wants to merge 10 commits into
monkeytypegame:masterfrom
nadalaba:mixed-tape

Conversation

@nadalaba

@nadalaba nadalaba commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

nadalaba added 2 commits April 8, 2026 22:15
also center current letter, so that it stays in the same position
in RTL and LTR tape
@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Apr 8, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes.

@github-actions github-actions Bot added the waiting for update Pull requests or issues that require changes/comments before continuing label Apr 28, 2026
@Miodec Miodec requested a review from Copilot April 28, 2026 20:32
@github-actions github-actions Bot added waiting for review Pull requests that require a review before continuing and removed waiting for update Pull requests or issues that require changes/comments before continuing labels Apr 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes tape-mode scrolling/caret positioning when individual words have different text direction than the overall test, improving mixed LTR/RTL behavior.

Changes:

  • Update tape scroll math to account for per-word direction (incl. “center current letter” adjustments).
  • Adjust caret tape offset calculations for RTL tests.
  • Load funbox CSS files asynchronously and wait for them to finish loading.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
frontend/src/ts/test/test-ui.ts Updates scrollTape() width/margin calculations for mixed-direction words.
frontend/src/ts/test/funbox/funbox.ts Changes funbox CSS application to async load/wait for stylesheets.
frontend/src/ts/elements/caret.ts Refines caret positioning in tape mode, incl. RTL tape margin handling.

Comment thread frontend/src/ts/test/test-ui.ts Outdated
Comment thread frontend/src/ts/test/funbox/funbox.ts
Comment thread frontend/src/ts/test/funbox/funbox.ts Outdated
@Miodec Miodec added waiting for update Pull requests or issues that require changes/comments before continuing and removed waiting for review Pull requests that require a review before continuing labels Apr 30, 2026
@github-actions github-actions Bot removed the waiting for update Pull requests or issues that require changes/comments before continuing label May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants