person
@@ -26,12 +26,13 @@ export default props => {
{links ?
Contains Link : null}
- {props.actions.map(action => canShowAction(action, props.comment) ? (
-
+
) : null)}
diff --git a/client/coral-admin/src/components/CommentList.js b/client/coral-admin/src/components/CommentList.js
index 819de62b0..e4682252d 100644
--- a/client/coral-admin/src/components/CommentList.js
+++ b/client/coral-admin/src/components/CommentList.js
@@ -112,15 +112,15 @@ export default class CommentList extends React.Component {
}
render () {
- const {singleView, commentIds, comments, hideActive} = this.props;
+ const {singleView, commentIds, comments, hideActive, key} = this.props;
const {active} = this.state;
return (
-
+
{commentIds.map((commentId, index) => (
{ if (el && commentId === active) { this._active = el; } }}
- key={`${index }comment`}
+ key={index}
index={index}
onClickAction={this.onClickAction}
actions={this.props.actions}
diff --git a/client/coral-admin/src/components/ui/Header.css b/client/coral-admin/src/components/ui/Header.css
index b80dca496..3d4e7dc77 100644
--- a/client/coral-admin/src/components/ui/Header.css
+++ b/client/coral-admin/src/components/ui/Header.css
@@ -2,3 +2,20 @@
background: #505050;
overflow: hidden;
}
+
+.header > div {
+ position: relative;
+ padding: 0;
+ width: 1170px;
+ margin: 0 auto;
+}
+
+.active {
+ background: #232323;
+}
+
+.version {
+ position: absolute;
+ right: 0;
+ width: 50px;
+}
diff --git a/client/coral-admin/src/components/ui/Header.js b/client/coral-admin/src/components/ui/Header.js
index af08eb024..7ba88d25a 100644
--- a/client/coral-admin/src/components/ui/Header.js
+++ b/client/coral-admin/src/components/ui/Header.js
@@ -10,13 +10,13 @@ export default () => (
);