mirror of
http://172.20.10.11:3000/gitadmin/INSIGHT-MVP.git
synced 2026-06-24 22:36:38 +02:00
fix: verhindere hängende Timeline-Linie bei Seitenumbruch im PDF-Export
Wenn ein Projekteintrag nahe am Seitenende endet und der nächste Eintrag auf einer neuen Seite beginnt, wird keine Verbindungslinie mehr gezeichnet. Vorher entstand ein hängender Strich ohne Ziel-Punkt. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1bba4abac3
commit
bec770c6ba
1 changed files with 3 additions and 2 deletions
|
|
@ -567,8 +567,9 @@ export class ProfileExportService {
|
|||
|
||||
yRight += 12;
|
||||
|
||||
// Timeline-Linie (korrekte Länge basiert auf tatsächlicher Höhe)
|
||||
if (i < profile.projects.length - 1 && !pageBreakOccurred) {
|
||||
// Timeline-Linie: nur zeichnen wenn kein Seitenumbruch im Eintrag
|
||||
// UND der nächste Eintrag noch auf dieser Seite passt (kein hängender Strich)
|
||||
if (i < profile.projects.length - 1 && !pageBreakOccurred && yRight + 40 <= pageBottom) {
|
||||
doc.moveTo(timelineX, entryStartY + 8).lineTo(timelineX, yRight - 4)
|
||||
.strokeColor(accentColor).lineWidth(1).stroke();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue