Images are distorted in the Tactics modal dialog

Offen Anfängerfreundlich
#358 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
78/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
react, typescript
Bereich
design, frontend

Rechercherichtung

Beginne mit src/renderer/tactics.tsx und src/renderer/tactics.css; untersuche das Workflow-SVG und seine Größenregeln und lies dann die Modal-Stile in src/renderer/modal.tsx und src/renderer/carbon/application.scss, falls der Container seine Größe beeinflusst. Reproduziere die Verzerrung im Tactics-Dialog bei Desktop- und schmalen Viewport-Größen. Fertig ist die Arbeit, wenn die Diagramme im hellen und dunklen Modus ihr vorgesehenes Seitenverhältnis beibehalten und eine Abdeckung für responsive Regressionen die Darstellung überprüft.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.
Vorherrschende Sprache
TypeScript
Sterne
1
Forks
1
Ø Merge
5 Std. 34 Min.
Gemergte PRs (30 T.)
136

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus CodeManufactoryLLC/Code60

Alle Issues in CodeManufactoryLLC/Code60

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.