@vishu1301/script-writing 1.0.1 → 1.0.2

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.
package/dist/index.js CHANGED
@@ -320,13 +320,16 @@ function ScreenplayEditorView({
320
320
  if (!document.getElementById(styleId)) {
321
321
  const style = document.createElement("style");
322
322
  style.id = styleId;
323
- style.textContent = `
324
- .font-screenplay-container,
325
- .font-screenplay-container *,
326
- .font-screenplay-container [contenteditable] {
327
- font-family: ${screenplayFont} !important;
328
- }
329
- `;
323
+ style.textContent = style.textContent = `
324
+ [data-screenplay-editor],
325
+ [data-screenplay-editor] *,
326
+ [data-screenplay-editor] [contenteditable="true"],
327
+ .font-screenplay-container,
328
+ .font-screenplay-container div,
329
+ .font-screenplay-container span {
330
+ font-family: 'Courier Prime', Courier, monospace !important;
331
+ }
332
+ `;
330
333
  document.head.appendChild(style);
331
334
  }
332
335
  }, [screenplayFont]);