Images are distorted in the Tactics modal dialog

Aperta Adatta ai principianti
#358 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
design, frontend

Direzione di ricerca

Inizia da src/renderer/tactics.tsx e src/renderer/tactics.css; esamina l’SVG Workflow e le relative regole di dimensionamento, poi leggi gli stili del modale in src/renderer/modal.tsx e src/renderer/carbon/application.scss se il contenitore ne influenza le dimensioni. Riproduci la distorsione nella finestra di dialogo Tactics con dimensioni desktop e viewport strette. Il lavoro è completato quando i diagrammi mantengono il rapporto d’aspetto previsto nelle modalità chiara e scura e la copertura delle regressioni responsive verifica il rendering.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
TypeScript
Stelle
1
Fork
1
Merge medio
5h 34m
PR unite (30g)
136

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CodeManufactoryLLC/Code60

Tutte le issue di CodeManufactoryLLC/Code60

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.