Keep drawing text controls clear of captions in constrained layouts

Aperta
#704 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@EricHuang0302 ci sta già lavorando.

Dal 15/11/2026.

  • #713 di @EricHuang0302 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
frontend

Direzione di ricerca

Start from PR #689, which reserves space for the compact caption card only in the two-column layout from 1024px, and find the stacked-layout rules that cover 481px to 1023px. The existing stacked-layout test checks only drawing width, so add browser coverage at 481px, 900px and 1023px. Done means labels placed near the card can still have Confirm and Cancel clicked with long captions and self-view. The layout choice needs checking against the available space first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Follow-up requested in https://github.com/sysprog21/codetrial/pull/689#discussion_r4566678963.

PR #689 reserves space for the compact caption card only in the two-column layout, from 1024px. Between 481px and 1023px, an expanded Example drawing still uses the fixed bottom-right card without reserving space for it. A label near that corner can therefore have Confirm or Cancel covered.

This is source analysis at 99ff92a and the maintainer's review observation, not a new browser reproduction. The existing stacked-layout test checks drawing width, not pointer access to label controls.

Keep the drawing usable at stacked widths while making Confirm and Cancel reachable with long captions and self-view. Add browser coverage at 481px, 900px and 1023px that creates labels near the card and clicks both controls. Choose the layout after checking the space available on these windows; a full-height side strip would make the drawing too narrow.

The desktop acceptance cases remain covered by #609 and PR #689.

Related desktop case from https://github.com/sysprog21/codetrial/pull/689#discussion_r4574354351: at 1024x800 with a 32px root font, the sidebar, drawing and card cannot all fit. PR #689 now clears its card cap when the available strip is too narrow for the fixed 120px self view, 1.25rem padding and 2px border, preserving a readable card rather than collapsing it to its padding. The 32px-root browser check confirms the card stays at 260px instead of 42px; it does not assert drawing clearance. Include this enlarged-font case when choosing and testing the constrained layout here.

Lingua principale
Rust
Stelle
236
Fork
153
Merge medio
1g 9h
PR unite (30g)
187

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sysprog21/codetrial

Tutte le issue di sysprog21/codetrial

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.