From 6bfde35de0e79ae05294e84bbdeb2e6e9aa175fa Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Thu, 11 Dec 2014 08:19:31 +0100 Subject: [PATCH] Fixed presentation and formatting of toggles and log-entries --- package.json | 2 +- public/css/unleash.css | 3 ++- public/js/components/feature/Feature.jsx | 15 +++++++-------- public/js/components/feature/FeatureList.jsx | 1 - public/js/components/log/LogEntry.jsx | 2 +- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 86a4ae9a1a..0bdd4ede95 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "start": "NODE_ENV=production node server.js", "build": "./node_modules/.bin/webpack", "dev": "NODE_ENV=development supervisor --ignore ./node_modules/,./public/js server.js", - "test": "export PORT=4243 ; jshint server.js lib test && jsxhint public/js/**/*.jsx && mocha test test/*.js && npm run coverage", + "test": "export PORT=4243 ; jest && jshint server.js lib test && jsxhint public/js/**/*.jsx && mocha test test/*.js && npm run coverage", "tdd": "mocha --watch test test/*", "test-bamboo-ci": "mocha test test/*", "coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec", diff --git a/public/css/unleash.css b/public/css/unleash.css index 0266021bf0..2d77687794 100644 --- a/public/css/unleash.css +++ b/public/css/unleash.css @@ -20,5 +20,6 @@ } code { - word-wrap: break-word;; + word-wrap: break-word; + white-space: pre; } \ No newline at end of file diff --git a/public/js/components/feature/Feature.jsx b/public/js/components/feature/Feature.jsx index 4a395a1ba7..47bc20f1e6 100644 --- a/public/js/components/feature/Feature.jsx +++ b/public/js/components/feature/Feature.jsx @@ -37,7 +37,7 @@ var Feature = React.createClass({ renderEditMode: function() { return ( - + @@ -54,18 +54,17 @@ var Feature = React.createClass({ - {this.props.feature.name} - - - - {this.props.feature.description || '\u00a0'} + {this.props.feature.name}
+ + {this.props.feature.description || '\u00a0'} + {this.props.feature.strategy} - +