mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-12-09 07:43:51 +00:00
Update editor.html
This commit is contained in:
parent
bb3cd40012
commit
fdc6062433
|
|
@ -12,25 +12,18 @@
|
||||||
padding: 0;
|
padding: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.ribbon-menu {
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
#container {
|
#container {
|
||||||
flex-grow: 1;
|
|
||||||
border: 1px solid grey;
|
border: 1px solid grey;
|
||||||
|
height: calc(100% - 139px);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: flex;
|
|
||||||
}
|
}
|
||||||
.banner {
|
.banner {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background-color: #f1f1f1;
|
background-color: #f1f1f1;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
@ -83,7 +76,6 @@
|
||||||
value: ['function x() {', '\tconsole.log("Hello world!");', '}'].join('\n'),
|
value: ['function x() {', '\tconsole.log("Hello world!");', '}'].join('\n'),
|
||||||
language: 'javascript'
|
language: 'javascript'
|
||||||
});
|
});
|
||||||
resizeEditor();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener('resize', resizeEditor);
|
window.addEventListener('resize', resizeEditor);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user