diff --git a/packages/playground/src/App.vue b/packages/playground/src/App.vue index be5f1897..3c78d29f 100644 --- a/packages/playground/src/App.vue +++ b/packages/playground/src/App.vue @@ -1,80 +1,9 @@ @@ -91,9 +20,14 @@ console.log('document', document); Editor.js Document Playground
- +
+
{{ data }}
+
+
+ +
@@ -106,6 +40,21 @@ console.log('document', document); .body { padding: 16px; + display: grid; + grid-template-columns: 50% 50%; + grid-gap: 16px; +} + +.input { + max-width: 100%; + overflow: auto; + font-size: 12px; + line-height: 1.5; + font-family: var(--rounded-family); +} + +.output { + } .header { diff --git a/packages/playground/src/components/Indent.vue b/packages/playground/src/components/Indent.vue index be8069cc..aa677b3e 100644 --- a/packages/playground/src/components/Indent.vue +++ b/packages/playground/src/components/Indent.vue @@ -1,6 +1,30 @@ + + @@ -8,4 +32,9 @@ .indent { padding: 4px 0 0 20px; } + +.collapsed { + color: #555; + cursor: pointer; +} diff --git a/packages/playground/src/components/Node.vue b/packages/playground/src/components/Node.vue index 0131553c..a595c2e6 100644 --- a/packages/playground/src/components/Node.vue +++ b/packages/playground/src/components/Node.vue @@ -90,7 +90,9 @@ function getParentObjectName(object: object): string {
{{ property }}
- +