mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-14 10:36:19 +02:00
some mroe fixes for detached mode. fixes #92
This commit is contained in:
@ -912,6 +912,9 @@ customEditorFontInput, cssSettingsModal, cssSettingsBtn, acssSettingsTextarea
|
|||||||
};
|
};
|
||||||
window.onunload = function() {
|
window.onunload = function() {
|
||||||
saveCode('code');
|
saveCode('code');
|
||||||
|
if (scope.detachedWindow) {
|
||||||
|
scope.detachedWindow.close();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function cleanupErrors(lang) {
|
function cleanupErrors(lang) {
|
||||||
|
@ -156,6 +156,16 @@ body:not(.light-version).overlay-visible .main-container {
|
|||||||
.layout-4 .demo-side {
|
.layout-4 .demo-side {
|
||||||
width: 100% !important;
|
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 {
|
.code-wrap {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -888,24 +898,6 @@ li.CodeMirror-hint-active {
|
|||||||
cursor: ns-resize;
|
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
|
/* Codemirror themes basic bg styles. This is here so that there is no big FOUC
|
||||||
while the theme CSS file is loading */
|
while the theme CSS file is loading */
|
||||||
|
Reference in New Issue
Block a user