1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-02-23 14:44:53 +01:00

some mroe fixes for detached mode. fixes #92

This commit is contained in:
Kushagra Gour 2017-09-16 19:04:59 +05:30
parent eadccb5c2e
commit 99800a728c
2 changed files with 13 additions and 18 deletions

View File

@ -912,6 +912,9 @@ customEditorFontInput, cssSettingsModal, cssSettingsBtn, acssSettingsTextarea
};
window.onunload = function() {
saveCode('code');
if (scope.detachedWindow) {
scope.detachedWindow.close();
}
};
function cleanupErrors(lang) {

View File

@ -156,6 +156,16 @@ body:not(.light-version).overlay-visible .main-container {
.layout-4 .demo-side {
width: 100% !important;
}
.is-detached-mode .demo-side {
display: none;
}
.is-detached-mode .code-side {
width: 100% !important;
}
.is-detached-mode.layout-2 .code-side {
height: auto !important;
}
.code-wrap {
display: flex;
flex-direction: column;
@ -888,24 +898,6 @@ li.CodeMirror-hint-active {
cursor: ns-resize;
}
.is-detached-mode .demo-side {
display: none;
}
.is-detached-mode .code-side {
width: 100% !important;
}
.layout-4 .code-side {
display: none;
}
.layout-4 .code-side + .gutter {
display: none;
}
.layout-4 .demo-side {
width: 100% !important;
}
/* Codemirror themes basic bg styles. This is here so that there is no big FOUC
while the theme CSS file is loading */