mail-editor-pancake 0.2.7 → 0.2.8

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.
@@ -292,7 +292,7 @@ export class Canvas {
292
292
  this.inner.style.fontSize = doc.styles.fontSize;
293
293
  this.inner.style.fontWeight = normalizeFontWeightStep(doc.styles.fontWeight);
294
294
  this.inner.style.color = doc.styles.color;
295
- this.inner.style.lineHeight = doc.styles.lineHeight ?? '1.25';
295
+ this.inner.style.lineHeight = doc.styles.lineHeight ?? '1.5';
296
296
  this.inner.style.setProperty('--sm-editor-link-color', doc.styles.linkColor);
297
297
  this.inner.style.setProperty(
298
298
  '--sm-list-indent-default',
@@ -1253,7 +1253,7 @@ function createDefaultDoc(partial?: Partial<EmailDoc>): EmailDoc {
1253
1253
  fontWeight: '400',
1254
1254
  color: '#433f3f',
1255
1255
  linkColor: '#ff5a00',
1256
- lineHeight: '1.25',
1256
+ lineHeight: '1.5',
1257
1257
  ...migrateLegacyStyles(partial?.styles ?? {}),
1258
1258
  };
1259
1259
  return {
@@ -1268,7 +1268,7 @@ function createDefaultDoc(partial?: Partial<EmailDoc>): EmailDoc {
1268
1268
  styles: {
1269
1269
  ...mergedStyles,
1270
1270
  fontWeight: mergedStyles.fontWeight ?? '400',
1271
- lineHeight: mergedStyles.lineHeight ?? '1.25',
1271
+ lineHeight: mergedStyles.lineHeight ?? '1.5',
1272
1272
  },
1273
1273
  sections: partial?.sections ?? [],
1274
1274
  };
@@ -424,7 +424,7 @@ export class RightPanel {
424
424
  ),
425
425
  this._textField(
426
426
  this.opts.t('rightPanel.doc.lineHeight'),
427
- doc.styles.lineHeight ?? '1.25',
427
+ doc.styles.lineHeight ?? '1.5',
428
428
  (v) =>
429
429
  this.opts.store.update((d) => {
430
430
  d.styles.lineHeight = v;
@@ -29,7 +29,7 @@ export function docToMjml(doc: EmailDoc, registry: Registry): string {
29
29
  ${doc.meta.preheader ? `<mj-preview>${escapeAttr(doc.meta.preheader)}</mj-preview>` : ''}
30
30
  <mj-attributes>
31
31
  <mj-all font-family="${escapeAttr(attrs.fontFamily)}" />
32
- <mj-text font-size="${escapeAttr(attrs.fontSize)}" font-weight="${escapeAttr(normalizeFontWeightStep(attrs.fontWeight))}" color="${escapeAttr(attrs.color)}" line-height="${escapeAttr(attrs.lineHeight ?? '1.25')}" />
32
+ <mj-text font-size="${escapeAttr(attrs.fontSize)}" font-weight="${escapeAttr(normalizeFontWeightStep(attrs.fontWeight))}" color="${escapeAttr(attrs.color)}" line-height="${escapeAttr(attrs.lineHeight ?? '1.5')}" />
33
33
  <mj-class name="link" color="${escapeAttr(attrs.linkColor)}" />
34
34
  </mj-attributes>
35
35
  <mj-style>
@@ -17,7 +17,7 @@ export interface MjRawCellTypography {
17
17
  export function mjRawCellTypographyFromStyles(s: GlobalStyles): MjRawCellTypography {
18
18
  return {
19
19
  fontSize: (s.fontSize || '16px').trim(),
20
- lineHeight: (s.lineHeight || '1.25').trim(),
20
+ lineHeight: (s.lineHeight || '1.5').trim(),
21
21
  color: (s.color || '#433f3f').trim(),
22
22
  fontFamily: (s.fontFamily || 'sans-serif').trim(),
23
23
  fontWeight: normalizeFontWeightStep(s.fontWeight),