diff --git a/embark-ui/src/components/Explorer.css b/embark-ui/src/components/Explorer.css
index 289a298b3..4aee49cd8 100644
--- a/embark-ui/src/components/Explorer.css
+++ b/embark-ui/src/components/Explorer.css
@@ -16,8 +16,3 @@
width: 90%;
display: inline-block;
}
-
-#root .explorer-row .text-truncate {
- width: 90%;
- display: inline-block;
-}
diff --git a/embark-ui/src/containers/TextEditorAsideContainer.js b/embark-ui/src/containers/TextEditorAsideContainer.js
index 84456220d..798cbbe2a 100644
--- a/embark-ui/src/containers/TextEditorAsideContainer.js
+++ b/embark-ui/src/containers/TextEditorAsideContainer.js
@@ -16,58 +16,54 @@ class TextEditorAsideContainer extends Component {
this.props.fetchContracts();
}
- render() {
- switch(this.props.currentAsideTab) {
+ renderContent(contract, index) {
+ switch (this.props.currentAsideTab) {
case 'browser':
- return ;
+ return ;
case 'debugger':
- return this.props.contracts.map((contract, index) => {
- return (
-
-
- {contract.className} - Details
-
-
-
- );
- });
+ return (
+
+ {contract.className} - Details
+
+
+ );
case 'detail':
- return this.props.contracts.map((contract, index) => {
- return (
-
-
- {contract.className} - Details
-
-
-
- );
- });
+ return (
+
+ {contract.className} - Details
+
+
+ );
case 'logger':
- return this.props.contracts.map((contract, index) => {
- return (
-
-
- {contract.className} - Transactions
- )
-
-
- );
- });
+ return (
+
+ {contract.className} - Transactions
+ )
+
+ );
case 'overview':
- return this.props.contracts.map((contract, index) => {
- return (
-
-
- {contract.className} - Overview
-
-
-
- );
- });
+ return (
+
+ {contract.className} - Overview
+
+
+ );
default:
- return ;
+ return '';
}
}
+
+ render() {
+ return this.props.contracts.map((contract, index) => {
+ return (
+
+
+ {this.renderContent(contract, index)}
+
+
+ );
+ });
+ }
}
function mapStateToProps(state, props) {
@@ -88,5 +84,5 @@ export default connect(
mapStateToProps,
{
fetchContracts: contractsAction.request
- },
+ }
)(TextEditorAsideContainer);