Kuvert: Empfaenger weiter nach rechts (60% statt 52% Breite)
All checks were successful
Build & Deploy / deploy (push) Successful in 20s
All checks were successful
Build & Deploy / deploy (push) Successful in 20s
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -297,7 +297,7 @@ function generateEnvelopeSVG(text, format, type, options = {}) {
|
||||
// type === 'recipient' / 'free'. Ist ein Absender gesetzt, sitzt der
|
||||
// Empfänger UNTEN RECHTS (klassisches Kuvert), sonst wie bisher oben links.
|
||||
const hatAbsender = !!String(options.sender || '').trim();
|
||||
const maxWidthPx = Math.min(widthPx - marginLeftPx - 20, widthPx * (hatAbsender ? 0.44 : 0.6));
|
||||
const maxWidthPx = Math.min(widthPx - marginLeftPx - 20, widthPx * (hatAbsender ? 0.36 : 0.6));
|
||||
|
||||
lines = wrapTextToLinesByWidth({
|
||||
text: String(text || ''),
|
||||
@@ -309,7 +309,7 @@ function generateEnvelopeSVG(text, format, type, options = {}) {
|
||||
if (hatAbsender) {
|
||||
// Empfänger unten rechts – bewusst über Höhen-/Breiten-Anteile, damit der
|
||||
// große Kuvert-Rand (marginTop bis ~50 % der Höhe) nicht alles nach oben zieht.
|
||||
startX = Math.round(widthPx * 0.52);
|
||||
startX = Math.round(widthPx * 0.60);
|
||||
const untenBaseline = heightPx * 0.80; // unterste Zeile ~20 % über der Unterkante
|
||||
startY = Math.round(untenBaseline - Math.max(0, lines.length - 1) * lineHeightPx);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user