From 225686133308d6cd337e921869e630b114a390f7 Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Sat, 29 Nov 2014 12:12:48 +0100 Subject: [PATCH] minor layout formatting --- public/css/unleash.css | 4 ++++ public/js/components/feature/Feature.jsx | 18 +++++++++--------- public/js/components/feature/FeatureForm.jsx | 2 +- public/js/components/log/LogEntryList.jsx | 2 +- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/public/css/unleash.css b/public/css/unleash.css index 62e01e0b91..bb9bd4d8e3 100644 --- a/public/css/unleash.css +++ b/public/css/unleash.css @@ -13,4 +13,8 @@ border-radius: 50%; width: 20px; height: 20px; +} + +.no-border { + border: none; } \ No newline at end of file diff --git a/public/js/components/feature/Feature.jsx b/public/js/components/feature/Feature.jsx index 580d6351d8..b29bbc9b75 100644 --- a/public/js/components/feature/Feature.jsx +++ b/public/js/components/feature/Feature.jsx @@ -33,14 +33,11 @@ var Feature = React.createClass({ this.toggleEditMode(); }, - render: function() { - return this.state.editMode ? this.renderEditMode() : this.renderViewMode(); - }, renderEditMode: function() { return ( - + @@ -48,10 +45,10 @@ var Feature = React.createClass({ }, - renderViewMode: function() { + render: function() { return ( - + @@ -71,18 +68,19 @@ var Feature = React.createClass({
-
-
+ {this.state.editMode ? this.renderEditMode() : this.renderEmptyRow()} {this.state.showHistory ? this.renderHistory() : this.renderEmptyRow()} ); @@ -94,7 +92,9 @@ var Feature = React.createClass({ renderHistory: function() { return ( - + + + ); } diff --git a/public/js/components/feature/FeatureForm.jsx b/public/js/components/feature/FeatureForm.jsx index 472d5831a5..b840e9fddc 100644 --- a/public/js/components/feature/FeatureForm.jsx +++ b/public/js/components/feature/FeatureForm.jsx @@ -23,7 +23,7 @@ var FeatureForm = React.createClass({ enabled: false }; - var title = this.props.feature ? "Edit '" + this.props.feature.name + "'" : "Create new toggle"; + var title = this.props.feature ? "" : "Create new toggle"; return (
diff --git a/public/js/components/log/LogEntryList.jsx b/public/js/components/log/LogEntryList.jsx index f2bf3a48c2..50e67e1d7b 100644 --- a/public/js/components/log/LogEntryList.jsx +++ b/public/js/components/log/LogEntryList.jsx @@ -12,7 +12,7 @@ var LogEntryList = React.createClass({ }); return (
- +
When