mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-26 08:11:17 +02:00
minor fixes and docs
This commit is contained in:
@@ -214,6 +214,7 @@ export class SidePane extends Component {
|
||||
}
|
||||
dropHandler(e) {
|
||||
e.preventDefault();
|
||||
// Object with `children` key is to simulate a folder structure for root folder
|
||||
this.props.onFileDrop(e.dataTransfer.getData('text/plain'), {
|
||||
children: this.props.files
|
||||
});
|
||||
|
@@ -1283,9 +1283,17 @@ export default class App extends Component {
|
||||
});
|
||||
}
|
||||
|
||||
getRootClasses() {
|
||||
const classes = [];
|
||||
if (this.state.currentItem && this.state.currentItem.files) {
|
||||
classes.push('is-file-mode');
|
||||
}
|
||||
return classes.join(' ');
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<div class={this.getRootClasses()}>
|
||||
<div class="main-container">
|
||||
<MainHeader
|
||||
externalLibCount={this.state.externalLibCount}
|
||||
|
Reference in New Issue
Block a user