Fix minor issue with selector. Fix issue with truncate wrapping.
This commit is contained in:
parent
f98b2bd4ba
commit
10223d5aef
2 changed files with 8 additions and 6 deletions
4
ui/src/components/post-form.tsx
vendored
4
ui/src/components/post-form.tsx
vendored
|
@ -518,10 +518,12 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
||||||
|
|
||||||
// Set up select searching
|
// Set up select searching
|
||||||
let selectId: any = document.getElementById('post-community');
|
let selectId: any = document.getElementById('post-community');
|
||||||
let selector = new Selectr(selectId, {});
|
if (selectId) {
|
||||||
|
let selector = new Selectr(selectId, { nativeDropdown: false });
|
||||||
selector.on('selectr.select', option => {
|
selector.on('selectr.select', option => {
|
||||||
this.state.postForm.community_id = Number(option.value);
|
this.state.postForm.community_id = Number(option.value);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
} else if (res.op == UserOperation.CreatePost) {
|
} else if (res.op == UserOperation.CreatePost) {
|
||||||
let data = res.data as PostResponse;
|
let data = res.data as PostResponse;
|
||||||
if (data.post.creator_id == UserService.Instance.user.id) {
|
if (data.post.creator_id == UserService.Instance.user.id) {
|
||||||
|
|
4
ui/src/components/post-listing.tsx
vendored
4
ui/src/components/post-listing.tsx
vendored
|
@ -169,7 +169,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
</video>
|
</video>
|
||||||
)}
|
)}
|
||||||
<div className="ml-4">
|
<div className="ml-4">
|
||||||
<div className="post-title text-wrap-truncate">
|
<div className="post-title">
|
||||||
<h5 className="mb-0 d-inline">
|
<h5 className="mb-0 d-inline">
|
||||||
<Link
|
<Link
|
||||||
className="text-body"
|
className="text-body"
|
||||||
|
@ -180,7 +180,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
</Link>
|
</Link>
|
||||||
</h5>
|
</h5>
|
||||||
{post.url && (
|
{post.url && (
|
||||||
<small>
|
<small class="d-inline-block">
|
||||||
<a
|
<a
|
||||||
className="ml-2 text-muted font-italic"
|
className="ml-2 text-muted font-italic"
|
||||||
href={post.url}
|
href={post.url}
|
||||||
|
|
Reference in a new issue