Whiteboard drawing-limit warning is not visible on narrow viewports
Maintainers usually reply within 1 day
@ZuoTso is already working on this.
Since Nov 23, 2026.
Assessment
This issue has not been assessed yet.
Description
Problem
On narrow viewports, the whiteboard's drawing-limit warning can appear outside the visible area, leaving users without visible feedback when a stroke is rejected.
Steps to reproduce
- Open the interview whiteboard in Chromium with a 390 × 844 viewport.
- Fill the whiteboard to
MAX_STROKES(600) using the existing browser test helper. - Scroll until the canvas is visible.
- Attempt another stroke using pointer input, without scrolling to the warning.
Actual behavior
The 601st stroke is correctly rejected, and the warning is added to #board-status:
Drawing limit reached. Undo or clear before adding more.
However, the warning is entirely below the viewport.
Measured results:
Viewport: 390 × 844
Stroke count: 600
Warning top: 851.95px
Warning bottom: 896.95px
Fully visible: false
Since #board-status is placed after the entire .board-surface, users may not see the reason their drawing attempt was rejected.
Expected behavior
The drawing-limit warning should be visible when a stroke is rejected, without requiring users to scroll away from the canvas.
Suggested improvement
Place the warning near the canvas or drawing toolbar while preserving its role="status" semantics.
Add a narrow-viewport regression test that verifies the warning appears within the visible viewport after a rejected stroke.
Verification
Reproduced locally using Playwright and Chromium against PR #661 (6c1b23a4).
- Existing whiteboard browser tests: 23 passed, 0 failed.
- Additional 390 × 844 visibility regression test: failed as expected (
fullyVisible: false).
The reproduction is confirmed on the reviewed PR commit; the latest main has not yet been independently retested.
Related PR: https://github.com/sysprog21/codetrial/pull/661
- Dominant language
- Rust
- Stars
- 236
- Forks
- 153
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 187
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sysprog21/codetrial
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Unify Java harness validation error messagesPossibly taken @weichieh0204 claimed this today. Open
sysprog21/codetrial#872 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Inferred void class operations are never checked against the starter's return typePossibly taken @papaya0112 claimed this today. Open
sysprog21/codetrial#871 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Edge Thumbnail Store accepts a store that does not refresh a key on overwritePossibly taken @BOBOGUAGUA428 claimed this today. Open
sysprog21/codetrial#869 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in sysprog21/codetrial
Similar issues
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
eliasstravik/herdr-projects#1605 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
jlcodes99/cockpit-tools#3332 ·
Maintainers usually reply within 3 days
-
Cognito: the email MFA code (EMAIL_OTP challenge after a password flow) has 8 digits; AWS delivers 6Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
aws/aws-emulator#692 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 82/100
pamburus/hl#1779 · 1 comment ·
Maintainers usually reply within 1 day