Keep drawing text controls clear of captions in constrained layouts
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- frontend
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Rust
- Stars
- 236
- Forks
- 153
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 187
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sysprog21/codetrial
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Unify Java harness validation error messagesPossibly taken @weichieh0204 claimed this today. Open
sysprog21/codetrial#872 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Inferred void class operations are never checked against the starter's return typePossibly taken @papaya0112 claimed this today. Open
sysprog21/codetrial#871 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Edge Thumbnail Store accepts a store that does not refresh a key on overwritePossibly taken @BOBOGUAGUA428 claimed this today. Open
sysprog21/codetrial#869 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in sysprog21/codetrial
Similar issues
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
eliasstravik/herdr-projects#1605 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
jlcodes99/cockpit-tools#3332 ·
Maintainers usually reply within 3 days
-
Cognito: the email MFA code (EMAIL_OTP challenge after a password flow) has 8 digits; AWS delivers 6Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
aws/aws-emulator#692 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 82/100
pamburus/hl#1779 · 1 comment ·
Maintainers usually reply within 1 day