[Bug]: SVG window-frame header band rounds its bottom corners
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
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
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
- Export SVG with the window frame enabled (default).
- Open the file and look at the header band above the code.
- 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
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di suradet-ps/codeframe
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
suradet-ps/codeframe#40 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
suradet-ps/codeframe#36 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Target width input clamps the value on every keystrokeForse già presa @AnushreeKasturi l’ha presa 5 giorni fa. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
suradet-ps/codeframe#37 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
suradet-ps/codeframe#38 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
suradet-ps/codeframe#30 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di suradet-ps/codeframe
Issue simili
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
area:sim good first issue kind:feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 87/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
bitcoindevkit/bdk#2432 ·
I maintainer di solito rispondono entro 3 giorni
-
The demo's interval button and chart legend keep the previous interval after an interval changeApertabug ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
userFRM/egui-charts#670 ·
I maintainer di solito rispondono entro 1 giorno
-
docs good first issue
Difficoltà 1/5 1-3 ore Idoneità per principianti 84/100
Usenova-Labs/usenova-backend#35 ·
I maintainer di solito rispondono entro 1 giorno