fix #244, make console open by default and remove console icon
This commit is contained in:
parent
54534f68d3
commit
1e670e9f9a
3 changed files with 4 additions and 4 deletions
|
@ -81,7 +81,7 @@ class Console extends React.Component {
|
|||
return (
|
||||
<div ref="console" className={consoleClass} role="main" tabIndex="0" title="console">
|
||||
<div className="preview-console__header">
|
||||
<h2 className="preview-console__header-title"><span className="preview-console__icon">>_</span>console</h2>
|
||||
<h2 className="preview-console__header-title">console</h2>
|
||||
<button className="preview-console__collapse" onClick={this.props.collapseConsole} aria-label="collapse console">
|
||||
<InlineSVG src={downArrowUrl} />
|
||||
</button>
|
||||
|
|
|
@ -53,7 +53,7 @@ class IDEView extends React.Component {
|
|||
}
|
||||
}
|
||||
|
||||
this.consoleSize = this.props.ide.consoleIsExpanded ? 180 : 29;
|
||||
this.consoleSize = this.props.ide.consoleIsExpanded ? 150 : 29;
|
||||
this.sidebarSize = this.props.ide.sidebarIsExpanded ? 160 : 20;
|
||||
this.forceUpdate();
|
||||
|
||||
|
@ -75,7 +75,7 @@ class IDEView extends React.Component {
|
|||
|
||||
componentWillUpdate(nextProps) {
|
||||
if (this.props.ide.consoleIsExpanded !== nextProps.ide.consoleIsExpanded) {
|
||||
this.consoleSize = nextProps.ide.consoleIsExpanded ? 180 : 29;
|
||||
this.consoleSize = nextProps.ide.consoleIsExpanded ? 150 : 29;
|
||||
}
|
||||
|
||||
if (this.props.ide.sidebarIsExpanded !== nextProps.ide.sidebarIsExpanded) {
|
||||
|
|
|
@ -6,7 +6,7 @@ const initialState = {
|
|||
consoleEvent: [],
|
||||
modalIsVisible: false,
|
||||
sidebarIsExpanded: false,
|
||||
consoleIsExpanded: false,
|
||||
consoleIsExpanded: true,
|
||||
preferencesIsVisible: false,
|
||||
projectOptionsVisible: false,
|
||||
newFolderModalVisible: false,
|
||||
|
|
Loading…
Reference in a new issue