center loading and adding translations
This commit is contained in:
parent
eaac033640
commit
ee674b721e
1 changed files with 4 additions and 4 deletions
8
ui/src/components/post.tsx
vendored
8
ui/src/components/post.tsx
vendored
|
@ -150,11 +150,11 @@ export class Post extends Component<any, PostState> {
|
|||
return (
|
||||
<div class="container">
|
||||
{this.state.loading ? (
|
||||
<h5>
|
||||
<p class="text-center">
|
||||
<svg class="icon icon-spinner spin">
|
||||
<use xlinkHref="#icon-spinner"></use>
|
||||
</svg>
|
||||
</h5>
|
||||
</p>
|
||||
) : (
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-8 mb-3">
|
||||
|
@ -168,7 +168,7 @@ export class Post extends Component<any, PostState> {
|
|||
{this.state.crossPosts.length > 0 && (
|
||||
<>
|
||||
<div class="my-1 text-muted small font-weight-bold">
|
||||
<T i18nKey="cross_posts">#</T>
|
||||
{ i18n.t('cross_posts') }
|
||||
</div>
|
||||
<PostListings showCommunity posts={this.state.crossPosts} />
|
||||
</>
|
||||
|
@ -239,7 +239,7 @@ export class Post extends Component<any, PostState> {
|
|||
<div class="d-none d-md-block new-comments mb-3 card border-secondary">
|
||||
<div class="card-body small">
|
||||
<h6>
|
||||
<T i18nKey="recent_comments">#</T>
|
||||
{ i18n.t('recent_comments') }
|
||||
</h6>
|
||||
{this.state.comments.map(comment => (
|
||||
<CommentNodes
|
||||
|
|
Loading…
Reference in a new issue