Images are distorted in the Tactics modal dialog
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react, typescript
Research direction
Start with src/renderer/tactics.tsx and src/renderer/tactics.css; inspect the Workflow SVG and its sizing rules, then read the modal styles in src/renderer/modal.tsx and src/renderer/carbon/application.scss if the container affects its size. Reproduce the distortion in the Tactics dialog at desktop and narrow viewport sizes. Done when the diagrams keep their intended aspect ratio in light and dark modes and responsive regression coverage verifies the rendering.
Written by the indexing model from the issue text.
Description
What happened?
Images (workflow diagrams) displayed inside the Tactics modal dialog (reported as the "Tact Cards" modal dialog) appear distorted.
What should have happened?
Workflow diagram images in the Tactics modal dialog should render cleanly at their intended aspect ratio without stretching, squishing, clipping, or other visual distortion across desktop and narrow viewports.
Steps to reproduce
- Open a project chat in Code60.
- Click the Tactics button in the chat composer to open the Tactics modal dialog.
- Preview tactics in the dialog and inspect the workflow diagram images rendered in the details pane.
- Observe that the rendered images appear distorted.
Reported by user; a fresh live browser reproduction has not been run for this issue.
App version or commit
Inspected origin/main: package.json version 0.5.0-beta, commit 10fb26f. Exact running build was not independently verified.
Affected interface
Desktop
Environment
- Operating system: macOS (exact running build/browser viewport not independently captured)
Impact and frequency
Visual defect affecting readability of workflow diagram images in the Tactics modal dialog; does not block applying tactics.
Code pointers
src/renderer/tactics.tsx—Workflow(<figure className="tactic-workflow"><svg viewBox="0 0 568 120" ...>) andTacticsDialogsrc/renderer/tactics.css—.tactics-layout,.tactic-content,.tactic-workflow, and.tactic-workflow svgsrc/renderer/modal.tsxandsrc/renderer/carbon/application.scss— Carbon modal container styling (.code60-modal)
Acceptance criteria
- Workflow diagram images in the Tactics modal dialog render at their intended aspect ratio without distortion across desktop and narrow viewports.
- Verify rendering across light, dark, and responsive viewport sizes with regression test coverage.
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 1
- Avg merge
- 5h 34m
- Merged PRs (30d)
- 136
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 CodeManufactoryLLC/Code60
-
bug needs-triage
Difficulty 3/5 1-2 days Newbie friendliness 70/100
CodeManufactoryLLC/Code60#359 ·
Maintainers usually reply within 1 day
All issues in CodeManufactoryLLC/Code60
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
review-followup
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
griffinwork40/agent-afk#5387 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
android:plan ios:plan main:plan packages:learn
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
th30d4y/OpenLearnX#767 · 1 comment ·
Maintainers usually reply within 1 day