shareneus 1.7.24 → 1.7.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -422,15 +422,15 @@ function buildHeaderContentWithLogo(logoDataUrl, hasLogo, organizationStack, log
422
422
  return { stack: safeOrganizationStack };
423
423
  }
424
424
  const logoBlock = {
425
- width: 80,
425
+ width: 120,
426
426
  image: logoDataUrl,
427
- fit: [72, 72],
427
+ fit: [80, 80],
428
428
  margin: [0, 2, 6, 0]
429
429
  };
430
430
  if (logoPosition === 'Top') {
431
431
  return {
432
432
  stack: [
433
- { image: logoDataUrl, fit: [72, 72], alignment: textAlignment, margin: [0, 2, 0, 6] },
433
+ { image: logoDataUrl, fit: [80, 80], alignment: textAlignment, margin: [0, 2, 0, 6] },
434
434
  ...safeOrganizationStack
435
435
  ]
436
436
  };
@@ -452,7 +452,7 @@ function buildHeaderContentWithLogo(logoDataUrl, hasLogo, organizationStack, log
452
452
  logoBlock,
453
453
  {
454
454
  width: '*',
455
- marginLeft: -90,
455
+ marginLeft: textAlignment === 'center' ? -90 : 0,
456
456
  stack: safeOrganizationStack
457
457
  }
458
458
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.7.24",
3
+ "version": "1.7.25",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -482,16 +482,16 @@ function buildHeaderContentWithLogo(
482
482
  }
483
483
 
484
484
  const logoBlock = {
485
- width: 80,
485
+ width: 120,
486
486
  image: logoDataUrl,
487
- fit: [72, 72],
487
+ fit: [80, 80],
488
488
  margin: [0, 2, 6, 0]
489
489
  };
490
490
 
491
491
  if (logoPosition === 'Top') {
492
492
  return {
493
493
  stack: [
494
- { image: logoDataUrl, fit: [72, 72], alignment: textAlignment, margin: [0, 2, 0, 6] },
494
+ { image: logoDataUrl, fit: [80, 80], alignment: textAlignment, margin: [0, 2, 0, 6] },
495
495
  ...safeOrganizationStack
496
496
  ]
497
497
  };
@@ -518,7 +518,7 @@ function buildHeaderContentWithLogo(
518
518
  logoBlock,
519
519
  {
520
520
  width: '*',
521
- marginLeft: -90,
521
+ marginLeft: textAlignment === 'center' ? -90 : 0,
522
522
  stack: safeOrganizationStack
523
523
  }
524
524
  ],