Resumen del fix:
Some checks failed
/ Deploy to Cloudflare Pages (push) Has been cancelled

loadImageBase64 ahora retorna { base64, pixelWidth, pixelHeight } (320×210px tras el resize) en vez de solo el string.
PdfHeaderOptions agrega logoPixelWidth/logoPixelHeight.
drawSharedHeader: logo a 15mm de ancho con alto calculado proporcionalmente desde las dimensiones reales (≈9.8mm, ratio real ~1.53:1, no el 3.56:1 hardcodeado anterior). El logo se posiciona arriba (MARGIN - 1), y processName + fecha bajan a la línea siguiente sin superponerse. clientName baja una línea adicional cuando hay logo (para no chocar con la fecha), ajustando y antes del border-bottom.
Fallback a texto "InQ ROI" intacto cuando no hay logo.
This commit is contained in:
2026-06-24 12:16:25 -03:00
parent f47cf82abf
commit dc610f8a1e
4 changed files with 252 additions and 17 deletions

View File

@@ -51,7 +51,7 @@ function MetricCell({
style={{ width: `${max > 0 ? (value / max) * 100 : 0}%` }}
/>
</div>
<span className="font-mono text-slate-700 text-xs w-14 text-right">
<span className="font-mono text-slate-700 text-xs w-14 text-right whitespace-nowrap">
{format(value)}
</span>
</div>