This commit is contained in:
Van 2019-06-23 14:45:20 +08:00
parent 1c295785d0
commit ef52c48b26
No known key found for this signature in database
GPG Key ID: 7059B8783A78F16C
3 changed files with 14 additions and 7 deletions

View File

@ -14,8 +14,16 @@
* limitations under the License.
*/
body{
overflow: auto;
body {
display: flex;
flex-direction: column;
max-height: 100vh;
}
.main {
flex: 1;
min-height: 1px;
display: flex;
}
.header {
@ -61,7 +69,7 @@ body{
}
.share-panel .font-ico:hover {
transform:rotate(360deg);
transform: rotate(360deg);
}
.footer {

View File

@ -26,7 +26,6 @@ var playground = {
editor: undefined,
pid: undefined,
_resize: function () {
$('#goNews, #editorDivWrap').height($(window).height() - 40 - $(".footer").height());
playground.editor.setSize("auto", ($("#editorDiv").parent().height() * 0.7) + "px");
},
_initShare: function () {

View File

@ -62,8 +62,8 @@
</div>
</div>
</div>
<div class="fn-clear">
<div class="fn-left" id="editorDivWrap">
<div class="main">
<div id="editorDivWrap">
<div id="editorDiv">
<textarea rows="20" id='editor' class="fn-none">{{.code}}</textarea>
</div>
@ -71,7 +71,7 @@
<div id="output" class="output"></div>
</div>
</div>
<div class="fn-right" id="goNews"></div>
<div id="goNews"></div>
</div>
<div class="footer">
<span class="wrapper">