Images are distorted in the Tactics modal dialog

Open Beginner friendly
#358 0 comments 0 reactions 0 assignees View on GitHub

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
Domain
design, frontend

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

bug needs-triage

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

  1. Open a project chat in Code60.
  2. Click the Tactics button in the chat composer to open the Tactics modal dialog.
  3. Preview tactics in the dialog and inspect the workflow diagram images rendered in the details pane.
  4. 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" ...>) and TacticsDialog
  • src/renderer/tactics.css — .tactics-layout, .tactic-content, .tactic-workflow, and .tactic-workflow svg
  • src/renderer/modal.tsx and src/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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CodeManufactoryLLC/Code60

All issues in CodeManufactoryLLC/Code60

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.