mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-28 17:20:13 +02:00
misc fixes
This commit is contained in:
@@ -234,6 +234,7 @@ export default class App extends Component {
|
||||
this.toggleLayout(
|
||||
this.state.currentItem.layoutMode || this.state.prefs.layoutMode
|
||||
);
|
||||
this.updateExternalLibCount();
|
||||
this.contentWrap.refreshEditor();
|
||||
}
|
||||
// Creates a new item with passed item's contents
|
||||
@@ -822,7 +823,9 @@ export default class App extends Component {
|
||||
}
|
||||
codepenBtnClickHandler(e) {
|
||||
if (this.state.currentItem.cssMode === CssModes.ACSS) {
|
||||
alert("Oops! CodePen doesn't supports Atomic CSS currently.");
|
||||
alert(
|
||||
"Oops! CodePen doesn't supports Atomic CSS currently. \nHere is something you can still do -> https://medium.com/web-maker/sharing-your-atomic-css-work-on-codepen-a402001b26ab"
|
||||
);
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
||||
@@ -934,6 +937,9 @@ export default class App extends Component {
|
||||
editorFocusHandler(editor) {
|
||||
this.editorWithFocus = editor;
|
||||
}
|
||||
modalOverlayClickHandler() {
|
||||
this.closeAllOverlays();
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
@@ -1103,7 +1109,10 @@ export default class App extends Component {
|
||||
/>
|
||||
|
||||
<Portal into="body">
|
||||
<div class="modal-overlay" />
|
||||
<div
|
||||
class="modal-overlay"
|
||||
onClick={this.modalOverlayClickHandler.bind(this)}
|
||||
/>
|
||||
</Portal>
|
||||
|
||||
<Icons />
|
||||
|
Reference in New Issue
Block a user