Images are distorted in the Tactics modal dialog

Đang mở Phù hợp với người mới
#358 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react, typescript
Lĩnh vực
design, frontend

Hướng nghiên cứu

Bắt đầu với src/renderer/tactics.tsx và src/renderer/tactics.css; kiểm tra SVG Workflow và các quy tắc định kích thước của nó, sau đó đọc các kiểu của modal trong src/renderer/modal.tsx và src/renderer/carbon/application.scss nếu vùng chứa ảnh hưởng đến kích thước. Tái hiện lỗi biến dạng trong hộp thoại Tactics ở kích thước desktop và viewport hẹp. Hoàn tất khi các sơ đồ giữ đúng tỷ lệ khung hình dự kiến ở cả chế độ sáng và tối, đồng thời kiểm thử hồi quy responsive xác minh cách hiển thị.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
1
Fork
1
Merge trung bình
5 giờ 34 phút
Pull request đã merge (30 ngày)
136

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CodeManufactoryLLC/Code60

Tất cả issue của CodeManufactoryLLC/Code60

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.