Images are distorted in the Tactics modal dialog
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- react, typescript
调研方向
从 src/renderer/tactics.tsx 和 src/renderer/tactics.css 开始;检查 Workflow SVG 及其尺寸规则,然后阅读 src/renderer/modal.tsx 和 src/renderer/carbon/application.scss 中的模态框样式(如果容器会影响其尺寸)。在桌面和窄视口尺寸下重现 Tactics 对话框中的变形问题。完成标准:图表在浅色和深色模式下都保持预期的宽高比,并且响应式回归测试覆盖并验证其渲染效果。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- TypeScript
- 星标
- 1
- 派生
- 1
- 平均合并
- 5 小时 34 分钟
- 30 天内合并 PR
- 136
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CodeManufactoryLLC/Code60 的其他 Issue
-
bug needs-triage
难度 3/5 1-2 天 新手友好度 70/100
CodeManufactoryLLC/Code60#359 ·
维护者通常 1 天内回复
查看 CodeManufactoryLLC/Code60 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 75/100
-
review-followup
难度 2/5 1-3 小时 新手友好度 68/100
griffinwork40/agent-afk#5387 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
android:plan ios:plan main:plan packages:learn
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 78/100
th30d4y/OpenLearnX#767 · 1 条评论 ·
维护者通常 1 天内回复