Whiteboard drawing-limit warning is not visible on narrow viewports

Ouverte
#833 1 commentaire 0 réactions 1 personne assignée Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@ZuoTso y travaille déjà.

Depuis le 23/11/2026.

Évaluation

Cette issue n'a pas encore été évaluée.

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

Langage dominant
Rust
Étoiles
236
Forks
153
Merge moyen
1 j 9 h
PR mergées (30 j)
187

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de sysprog21/codetrial

Toutes les issues de sysprog21/codetrial

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.