Skip to content

Commit de45e58

Browse files
committed
fix: docs sanbox overflow
1 parent 753c913 commit de45e58

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

docs/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,14 @@ <h2 class="padding:5px_0px">Demo</h2>
232232
</div>
233233
<div class="position:sticky top:0 padding:15px_0px height:100vh">
234234
<!-- SandBox -->
235-
<div class="position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
235+
<div class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
236236

237237
<div id="demo-code" resizable class="position:relative height:50%">
238238
<textarea type="code" lang="html" collection="demos" document_id="" name="demo" save="false" id="demo" class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
239239
<div resize="bottom" class="background:lightgrey"></div>
240240
</div>
241241

242-
<div id="demo-preview" class="position:relative display:flex height:100% background-color:white">
242+
<div id="demo-preview" class="position:relative overflow:auto background-color:white">
243243
<div get-value="#demo" class="padding:20px"></div>
244244
</div>
245245

package.json

+8-12
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
"html5-framework",
2121
"javascript-framework"
2222
],
23-
"publishConfig": {
24-
"access": "public"
25-
},
23+
"publishConfig": { "access": "public" },
2624
"scripts": {
2725
"start": "npx webpack --config webpack.config.js",
2826
"build": "NODE_ENV=production npx webpack --config webpack.config.js",
@@ -36,9 +34,7 @@
3634
},
3735
"author": "CoCreate LLC",
3836
"license": "MIT",
39-
"bugs": {
40-
"url": "https://github.com/CoCreate-app/CoCreate-render/issues"
41-
},
37+
"bugs": { "url": "https://github.com/CoCreate-app/CoCreate-render/issues" },
4238
"homepage": "https://cocreate.app/docs/render",
4339
"funding": {
4440
"type": "GitHub Sponsors ❤",
@@ -60,11 +56,11 @@
6056
"webpack-log": "^3.0.1"
6157
},
6258
"dependencies": {
63-
"@cocreate/actions": "^1.5.47",
64-
"@cocreate/api": "^1.5.34",
65-
"@cocreate/docs": "^1.5.1",
66-
"@cocreate/element-prototype": "^1.2.20",
67-
"@cocreate/observer": "^1.5.51",
68-
"@cocreate/utils": "^1.17.12"
59+
"@cocreate/actions": "^1.5.48",
60+
"@cocreate/api": "^1.5.35",
61+
"@cocreate/docs": "^1.5.2",
62+
"@cocreate/element-prototype": "^1.2.21",
63+
"@cocreate/observer": "^1.5.52",
64+
"@cocreate/utils": "^1.17.13"
6965
}
7066
}

0 commit comments

Comments
 (0)