summaryrefslogtreecommitdiffstats
path: root/ui/src/components/community.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/components/community.tsx')
-rw-r--r--ui/src/components/community.tsx18
1 files changed, 11 insertions, 7 deletions
diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx
index 67386469..4e8e9d1b 100644
--- a/ui/src/components/community.tsx
+++ b/ui/src/components/community.tsx
@@ -43,6 +43,7 @@ import {
createPostLikeFindRes,
editPostFindRes,
commentsToFlatNodes,
+ setupTippy,
} from '../utils';
import { i18n } from '../i18next';
@@ -194,13 +195,14 @@ export class Community extends Component<any, State> {
selects() {
return (
- <div class="mb-2">
- <DataTypeSelect
- type_={this.state.dataType}
- onChange={this.handleDataTypeChange}
- />
-
- <span class="mx-3">
+ <div class="mb-3">
+ <span class="mr-3">
+ <DataTypeSelect
+ type_={this.state.dataType}
+ onChange={this.handleDataTypeChange}
+ />
+ </span>
+ <span class="mr-2">
<SortSelect sort={this.state.sort} onChange={this.handleSortChange} />
</span>
<a
@@ -208,6 +210,7 @@ export class Community extends Component<any, State> {
SortType[this.state.sort]
}`}
target="_blank"
+ title="RSS"
>
<svg class="icon text-muted small">
<use xlinkHref="#icon-rss">#</use>
@@ -339,6 +342,7 @@ export class Community extends Component<any, State> {
this.state.posts = data.posts;
this.state.loading = false;
this.setState(this.state);
+ setupTippy();
} else if (res.op == UserOperation.EditPost) {
let data = res.data as PostResponse;
editPostFindRes(data, this.state.posts);