1
0
mirror of https://github.com/flarum/core.git synced 2025-05-13 10:55:40 +02:00

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 f5ee37b394
commit d5d769ebb1
2 changed files with 4 additions and 1 deletions
js/src/forum/components
less/forum

@ -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}>

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