Images are distorted in the Tactics modal dialog

未关闭 适合新手
#358 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
react, typescript
领域
design, frontend

调研方向

从 src/renderer/tactics.tsx 和 src/renderer/tactics.css 开始;检查 Workflow SVG 及其尺寸规则,然后阅读 src/renderer/modal.tsx 和 src/renderer/carbon/application.scss 中的模态框样式(如果容器会影响其尺寸)。在桌面和窄视口尺寸下重现 Tactics 对话框中的变形问题。完成标准:图表在浅色和深色模式下都保持预期的宽高比,并且响应式回归测试覆盖并验证其渲染效果。

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
TypeScript
星标
1
派生
1
平均合并
5 小时 34 分钟
30 天内合并 PR
136

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CodeManufactoryLLC/Code60 的其他 Issue

查看 CodeManufactoryLLC/Code60 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。