mirror of
http://172.20.10.11:3000/gitadmin/INSIGHT-MVP.git
synced 2026-06-25 00:16:41 +02:00
fix(core): PDF-Export Icons kleiner (12->9px) und besser positioniert
- iconSize 12 -> 9px - iconTextOffset 20 -> 14px (kompakter) - Alle Icons gleichmaessig bei y+1 positioniert (sauberes vertikales Alignment mit 8pt Text) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
927de0a809
commit
41d944312c
1 changed files with 6 additions and 6 deletions
|
|
@ -263,23 +263,23 @@ export class ProfileExportService {
|
||||||
const mobileIcon = this.loadIcon('Mobile.png', accentColor);
|
const mobileIcon = this.loadIcon('Mobile.png', accentColor);
|
||||||
const mailIcon = this.loadIcon('Mail.png', accentColor);
|
const mailIcon = this.loadIcon('Mail.png', accentColor);
|
||||||
const addressIcon = this.loadIcon('Address.png', accentColor);
|
const addressIcon = this.loadIcon('Address.png', accentColor);
|
||||||
const iconSize = 12;
|
const iconSize = 9;
|
||||||
const iconTextOffset = 20; // Abstand Icon → Text
|
const iconTextOffset = 14; // Abstand Icon → Text
|
||||||
|
|
||||||
if (data.phone) {
|
if (data.phone) {
|
||||||
if (phoneIcon) doc.image(phoneIcon, leftColX, yLeft - 1, { width: iconSize, height: iconSize });
|
if (phoneIcon) doc.image(phoneIcon, leftColX, yLeft + 1, { width: iconSize, height: iconSize });
|
||||||
yLeft = this.pdfContactText(doc, data.phone, leftColX + iconTextOffset, yLeft, leftColWidth - iconTextOffset);
|
yLeft = this.pdfContactText(doc, data.phone, leftColX + iconTextOffset, yLeft, leftColWidth - iconTextOffset);
|
||||||
}
|
}
|
||||||
if (data.mobile) {
|
if (data.mobile) {
|
||||||
if (mobileIcon) doc.image(mobileIcon, leftColX + 1, yLeft - 1, { width: iconSize, height: iconSize });
|
if (mobileIcon) doc.image(mobileIcon, leftColX, yLeft + 1, { width: iconSize, height: iconSize });
|
||||||
yLeft = this.pdfContactText(doc, data.mobile, leftColX + iconTextOffset, yLeft, leftColWidth - iconTextOffset);
|
yLeft = this.pdfContactText(doc, data.mobile, leftColX + iconTextOffset, yLeft, leftColWidth - iconTextOffset);
|
||||||
}
|
}
|
||||||
if (data.email) {
|
if (data.email) {
|
||||||
if (mailIcon) doc.image(mailIcon, leftColX, yLeft - 1, { width: iconSize, height: iconSize });
|
if (mailIcon) doc.image(mailIcon, leftColX, yLeft + 1, { width: iconSize, height: iconSize });
|
||||||
yLeft = this.pdfContactText(doc, data.email, leftColX + iconTextOffset, yLeft, leftColWidth - iconTextOffset);
|
yLeft = this.pdfContactText(doc, data.email, leftColX + iconTextOffset, yLeft, leftColWidth - iconTextOffset);
|
||||||
}
|
}
|
||||||
if (data.street || data.city) {
|
if (data.street || data.city) {
|
||||||
if (addressIcon) doc.image(addressIcon, leftColX + 1, yLeft - 2, { width: iconSize, height: iconSize + 2 });
|
if (addressIcon) doc.image(addressIcon, leftColX, yLeft + 1, { width: iconSize, height: iconSize });
|
||||||
const line1 = data.street || '';
|
const line1 = data.street || '';
|
||||||
const line2 = [data.postalCode, data.city].filter(Boolean).join(' ');
|
const line2 = [data.postalCode, data.city].filter(Boolean).join(' ');
|
||||||
const addressText = [line1, line2].filter(Boolean).join('\n');
|
const addressText = [line1, line2].filter(Boolean).join('\n');
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue