mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 13:05:50 +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() {
|
view() {
|
||||||
const attrs = this.attrs();
|
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 (
|
return (
|
||||||
<article {...attrs}>
|
<article {...attrs}>
|
||||||
|
|
|
@ -202,6 +202,9 @@
|
||||||
.Post--loading {
|
.Post--loading {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
.Post--self {
|
||||||
|
border: solid @config-primary-color;
|
||||||
|
}
|
||||||
.PostMeta {
|
.PostMeta {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user