Keep drawing text controls clear of captions in constrained layouts

Aberta
#704 1 comentário 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 1 dia

@EricHuang0302 já está trabalhando nisso.

Desde 15/11/2026.

  • #713 de @EricHuang0302 — aberto

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
42/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Domínio
frontend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Rust
Estrelas
236
Forks
153
Merge médio
1d 9h
PRs com merge (30d)
187

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de sysprog21/codetrial

Todas as issues de sysprog21/codetrial

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.