Skip to content

Commit 9b74b92

Browse files
committed
fix: docs sanbox overflow
1 parent 3cc6341 commit 9b74b92

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

demo/atomic-css.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,14 +729,14 @@ <h2 class="padding:5px_0px">Demo</h2>
729729
</div>
730730
<div class="position:sticky top:0 padding:15px_0px height:100vh">
731731
<!-- SandBox -->
732-
<div class="position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
732+
<div class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
733733

734734
<div id="demo-code" resizable class="position:relative height:50%">
735735
<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>
736736
<div resize="bottom" class="background:lightgrey"></div>
737737
</div>
738738

739-
<div id="demo-preview" class="position:relative display:flex height:100% background-color:white">
739+
<div id="demo-preview" class="position:relative overflow:auto background-color:white">
740740
<div get-value="#demo" class="padding:20px"></div>
741741
</div>
742742

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,14 +739,14 @@ <h2 class="padding:5px_0px">Demo</h2>
739739
</div>
740740
<div class="position:sticky top:0 padding:15px_0px height:100vh">
741741
<!-- SandBox -->
742-
<div class="position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
742+
<div class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
743743

744744
<div id="demo-code" resizable class="position:relative height:50%">
745745
<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>
746746
<div resize="bottom" class="background:lightgrey"></div>
747747
</div>
748748

749-
<div id="demo-preview" class="position:relative display:flex height:100% background-color:white">
749+
<div id="demo-preview" class="position:relative overflow:auto background-color:white">
750750
<div get-value="#demo" class="padding:20px"></div>
751751
</div>
752752

package.json

Lines changed: 5 additions & 7 deletions
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",
@@ -60,9 +58,9 @@
6058
"webpack-log": "^3.0.1"
6159
},
6260
"dependencies": {
63-
"@cocreate/crud-client": "^1.17.8",
64-
"@cocreate/docs": "^1.5.1",
65-
"@cocreate/hosting": "^1.7.1",
66-
"@cocreate/observer": "^1.5.51"
61+
"@cocreate/crud-client": "^1.17.9",
62+
"@cocreate/docs": "^1.5.2",
63+
"@cocreate/hosting": "^1.7.2",
64+
"@cocreate/observer": "^1.5.52"
6765
}
6866
}

0 commit comments

Comments
 (0)