diff --git a/src/components/hosts/HostItem.jsx b/src/components/hosts/HostItem.jsx index e05ff34..31a1b09 100644 --- a/src/components/hosts/HostItem.jsx +++ b/src/components/hosts/HostItem.jsx @@ -107,7 +107,7 @@ class HostItem extends Component { Comment: ({this.props.comment_author}): {formatDateTimeAgo(this.props.comment_entry_time)} {translate('ago', language)} - {this.props.comment} } - + ); diff --git a/src/components/services/ServiceItem.jsx b/src/components/services/ServiceItem.jsx index a06723b..4d8c8f5 100644 --- a/src/components/services/ServiceItem.jsx +++ b/src/components/services/ServiceItem.jsx @@ -111,7 +111,7 @@ class ServiceItem extends Component { Comment: ({this.props.comment_author}): {formatDateTimeAgo(this.props.comment_entry_time)} ago - {this.props.comment} } - + diff --git a/src/components/widgets/Progress.css b/src/components/widgets/Progress.css index 1fceaa1..8974e4c 100644 --- a/src/components/widgets/Progress.css +++ b/src/components/widgets/Progress.css @@ -20,8 +20,18 @@ position: absolute; bottom: 0px; left: 0; - background-color: lime; + background-color: gray; width: 100%; /*transition: width 15s linear;*/ opacity: 0.5; +} + +.Progress .progress-bar.color-yellow { + background-color: yellow; +} +.Progress .progress-bar.color-red { + background-color: pink; +} +.Progress .progress-bar.color-green { + background-color: lime; } \ No newline at end of file diff --git a/src/components/widgets/Progress.jsx b/src/components/widgets/Progress.jsx index 684e876..8a2ba9c 100644 --- a/src/components/widgets/Progress.jsx +++ b/src/components/widgets/Progress.jsx @@ -6,7 +6,7 @@ class Progress extends Component { shouldComponentUpdate(nextProps, nextState) { //console.log('shouldComponentUpdate', nextProps, nextState); - if (nextProps.seconds <= 0 && this.state.started === true) { + if (nextProps.seconds < 0 && this.state.started === true) { this.setState({ started: false }); //return true; } @@ -67,7 +67,7 @@ class Progress extends Component { return (