Added border around post made by active user

This commit is contained in:
Matthew Kilgore 2019-11-01 22:55:47 -04:00 committed by Daniël Klabbers
parent cef46ec357
commit c4ba13f608
2 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,7 @@ export default class Post extends Component {
view() {
const attrs = this.attrs();
attrs.className = 'Post ' + (this.loading ? 'Post--loading ' : '') + (attrs.className || '');
attrs.className = 'Post ' + (this.loading ? 'Post--loading ' : '') + (this.props.post.user() === app.session.user ? 'Post--self' : '') + (attrs.className || '');
return (
<article {...attrs}>

View File

@ -202,6 +202,9 @@
.Post--loading {
opacity: 0.5;
}
.Post--self {
border: solid @config-primary-color;
}
.PostMeta {
display: inline;
}