Keep drawing text controls clear of captions in constrained layouts

Abierto
#704 1 comentario 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@EricHuang0302 ya está trabajando en esto.

Desde el 15/11/2026.

  • #713 de @EricHuang0302 — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
236
Forks
153
Merge medio
1 d 9 h
PR fusionados (30 d)
187

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de sysprog21/codetrial

Todos los issues de sysprog21/codetrial

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.