diff --git a/_embed/public/css/styles.css b/_embed/public/css/styles.css index 079fa2d7..150ee9b2 100644 --- a/_embed/public/css/styles.css +++ b/_embed/public/css/styles.css @@ -153,6 +153,11 @@ i.spin { display: inline-block; } +.frontmatter fieldset[data-type="object"] { + position: relative; + margin: 0; +} + .frontmatter .button { background-color: #2196f3; color: #fff; diff --git a/_embed/public/js/editor.js b/_embed/public/js/editor.js index fc539b5d..07ba76b9 100644 --- a/_embed/public/js/editor.js +++ b/_embed/public/js/editor.js @@ -98,11 +98,11 @@ function addFrontMatterItemPrompt(parent) { if (type == "array" || type == "object") { if (parent.dataset.type == "parent") { - makeFromBaseTemplate(bid, newtype, name, document.querySelector('.frontmatter')); + makeFromBaseTemplate(id, type, name, document.querySelector('.frontmatter')); return; } - makeFromBaseTemplate(bid, newtype, name, block); + makeFromBaseTemplate(id, type, name, block); return; }