fix #244, make console open by default and remove console icon

This commit is contained in:
Cassie Tarakajian 2017-01-09 16:31:39 -05:00
parent 54534f68d3
commit 1e670e9f9a
3 changed files with 4 additions and 4 deletions

View file

@ -81,7 +81,7 @@ class Console extends React.Component {
return ( return (
<div ref="console" className={consoleClass} role="main" tabIndex="0" title="console"> <div ref="console" className={consoleClass} role="main" tabIndex="0" title="console">
<div className="preview-console__header"> <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"> <button className="preview-console__collapse" onClick={this.props.collapseConsole} aria-label="collapse console">
<InlineSVG src={downArrowUrl} /> <InlineSVG src={downArrowUrl} />
</button> </button>

View file

@ -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.sidebarSize = this.props.ide.sidebarIsExpanded ? 160 : 20;
this.forceUpdate(); this.forceUpdate();
@ -75,7 +75,7 @@ class IDEView extends React.Component {
componentWillUpdate(nextProps) { componentWillUpdate(nextProps) {
if (this.props.ide.consoleIsExpanded !== nextProps.ide.consoleIsExpanded) { 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) { if (this.props.ide.sidebarIsExpanded !== nextProps.ide.sidebarIsExpanded) {

View file

@ -6,7 +6,7 @@ const initialState = {
consoleEvent: [], consoleEvent: [],
modalIsVisible: false, modalIsVisible: false,
sidebarIsExpanded: false, sidebarIsExpanded: false,
consoleIsExpanded: false, consoleIsExpanded: true,
preferencesIsVisible: false, preferencesIsVisible: false,
projectOptionsVisible: false, projectOptionsVisible: false,
newFolderModalVisible: false, newFolderModalVisible: false,