Canvas-panel centering still causes alignment issues with short lines (see PR #246)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
Research direction
Review PR #246 and inspect the canvas-panel centering logic first, then reproduce the issue with a mix of long and short lines. Done means every rendered line is centered within the panel, including the short-line cases described in the issue.
Written by the indexing model from the issue text.
Description
Although the changes from PR #246 ("244 bottom image alignment") have been applied, there are still alignment issues when rendering short lines. This appears to be due to the way canvas-panel calculates and applies centering, which does not always align short lines as expected. Further investigation and adjustment to the centering logic in canvas-panel is needed to resolve these remaining issues.
Related PR: #246
Steps to reproduce:
- Apply the changes from PR #246
- Render a set of long and short lines using canvas-panel
- Observe that the alignment below is still off-center (leftwards) in some cases
Expected behavior:
- All lines, regardless of length, should be properly centered within the panel.
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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 CenterForDigitalHumanities/TPEN-interfaces
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
License link borkedOpen
Difficulty 1/5 Under an hour Newbie friendliness 68/100
All issues in CenterForDigitalHumanities/TPEN-interfaces
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 2 days
-
feedback simulation workshop
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
githubnext/gh-aw-workshop#4755 ·
Maintainers usually reply within 1 day
-
fix
Difficulty 1/5 Under an hour Newbie friendliness 72/100
idean3885/claude-ops-agent#728 ·
Maintainers usually reply within 1 day
-
deck: add to staging level: easy p-feature: Privacy Policy priority: MUST HAVE ready for product role: front-end size: 0.25pt Waiting on Stakeholder
Difficulty 2/5 1-3 hours Newbie friendliness 61/100
hackforla/tdm-calculator#3654 · 1 comment ·
Maintainers usually reply within 1 day
-
Add: Sony Vizha HDOpencheck:failed feeds:add
Difficulty 1/5 Under an hour Newbie friendliness 78/100