From 2619f5717064ddba2cf33abfd073f4b167f9ca99 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 2 Jan 2017 18:52:51 +0000 Subject: [PATCH] updates on #63 Former-commit-id: 6b9d5bca43a4e18af638af9453255170dbe06adf --- _embed/public/css/styles.css | 5 +++++ _embed/public/js/editor.js | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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; }