@pyscript/core 0.7.26 → 0.7.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyscript/core",
3
- "version": "0.7.26",
3
+ "version": "0.7.27",
4
4
  "type": "module",
5
5
  "description": "PyScript",
6
6
  "module": "./index.js",
@@ -445,7 +445,8 @@ const init = async (script, type, interpreter) => {
445
445
  const rows = script.getAttribute("rows");
446
446
  if (rows) {
447
447
  const maxHeight = Math.floor(parseInt(rows) * 18.5) + "px";
448
- styles.push(`.cm-editor { height: auto; max-height: ${maxHeight}; }`);
448
+ const minHeight = Math.floor(3 * 18.5) + "px";
449
+ styles.push(`.cm-editor { height: auto; max-height: ${maxHeight}; min-height: ${minHeight}; }`);
449
450
  }
450
451
  parent.innerHTML = `<style>${styles.join("\n")}</style>`;
451
452