markstream-angular 0.0.10 → 0.0.12

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.
@@ -844,7 +844,7 @@ class PreCodeNodeComponent {
844
844
  if (this.showLineNumbers !== true)
845
845
  return null;
846
846
  const maximumLineNumber = this.codeLineCount;
847
- const width = `${Math.max(4, String(maximumLineNumber).length)}ch`;
847
+ const width = `${Math.max(2, String(maximumLineNumber).length)}ch`;
848
848
  return {
849
849
  '--markstream-pre-line-number-width': width,
850
850
  '--markstream-pre-diff-line-number-width': width,
@@ -1478,7 +1478,7 @@ class CodeBlockNodeComponent {
1478
1478
  // The Angular shell already owns the language/file header. Keep the
1479
1479
  // enhanced surface headerless so it matches the Vue 3 handoff contract.
1480
1480
  disableFileHeader: true,
1481
- unsafeCSS: `[data-file], [data-diff] { --diffs-min-number-column-width-default: 4ch !important; }
1481
+ unsafeCSS: `[data-file], [data-diff] { --diffs-min-number-column-width-default: 2ch !important; }
1482
1482
  ${configuredUnsafeCSS}`.trim(),
1483
1483
  };
1484
1484
  this.runtimeMonacoOptions = options;
@@ -9106,7 +9106,7 @@ async function renderMonaco(root, cleanupFns, options, isActive) {
9106
9106
  const configuredUnsafeCSS = typeof options.monacoOptions?.unsafeCSS === 'string'
9107
9107
  ? options.monacoOptions.unsafeCSS
9108
9108
  : '';
9109
- const runtimeUnsafeCSS = `[data-file], [data-diff] { --diffs-min-number-column-width-default: 4ch !important; }
9109
+ const runtimeUnsafeCSS = `[data-file], [data-diff] { --diffs-min-number-column-width-default: 2ch !important; }
9110
9110
  ${configuredUnsafeCSS}`.trim();
9111
9111
  const helpers = monacoModule.useMonaco({
9112
9112
  themes: ['vitesse-dark', 'vitesse-light'],