Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug]: SVG window-frame header band rounds its bottom corners

Aperta Adatta ai principianti
#35 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
82/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
desktop

Direzione di ricerca

Leggi crates/renderer/src/svg.rs nell’intestazione a pannello singolo, intorno alle righe 197–203, quindi confrontala con l’intestazione a pannelli divisi, intorno alle righe 441–446, e con il comportamento di rendering del canvas descritto nell’issue. Modifica il rendering dell’intestazione SVG in modo che gli angoli inferiori siano squadrati e la parte superiore segua la forma della scheda. Esporta SVG a pannello singolo e a pannelli divisi e confronta i bordi delle intestazioni con l’output PNG.

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

Descrizione

bug
What happened?

In the SVG export, the window-frame header band has rounded bottom corners. In the canvas (PNG) output the same band is clipped to the card shape, so its bottom corners are square. The two export formats therefore do not match: the SVG shows small notches at the bottom corners of the header band.

Steps to reproduce
  1. Export SVG with the window frame enabled (default).
  2. Open the file and look at the header band above the code.
  3. Compare with the PNG export of the same content.
Expected behavior

The header band bottom edge is straight, identical to the canvas rendering.

Actual behavior

The SVG header band is drawn as a standalone rounded rect (rx set to the card corner radius), which rounds all four corners including the bottom two. Canvas clips the band to the card path, so it has no bottom rounding.

Where did it go wrong?

SVG export

Settings

Window frame enabled. Any theme. Most visible on dark themes where the band tint contrasts with the card background.

Browser

Not browser specific.

CodeFrame version

0.7.0

Console output or extra context

References:

  • crates/renderer/src/svg.rs:197-203 (single panel header)
  • crates/renderer/src/svg.rs:441-446 (split panel header)

Suggested fix: wrap the header in a <clipPath> that references the card shape, or emit a path that rounds only the top corners.

Lingua principale
Rust
Stelle
1
Fork
0
Merge medio
2g 2h
PR unite (30g)
8

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 suradet-ps/codeframe

Tutte le issue di suradet-ps/codeframe

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.