mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 05:53:45 +08:00
Added border around post made by active user
This commit is contained in:
parent
cef46ec357
commit
c4ba13f608
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user