Whiteboard drawing-limit warning is not visible on narrow viewports

Open
#833 1 comment 0 reactions 1 assignee View on GitHub

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

  1. Open the interview whiteboard in Chromium with a 390 × 844 viewport.
  2. Fill the whiteboard to MAX_STROKES (600) using the existing browser test helper.
  3. Scroll until the canvas is visible.
  4. Attempt another stroke using pointer input, without scrolling to the warning.
100 80 67

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sysprog21/codetrial

All issues in sysprog21/codetrial

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.