Fix minor issue with selector. Fix issue with truncate wrapping.

This commit is contained in:
Dessalines 2020-02-15 16:09:53 -05:00
parent f98b2bd4ba
commit 10223d5aef
2 changed files with 8 additions and 6 deletions

View file

@ -518,10 +518,12 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
// Set up select searching
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 => {
this.state.postForm.community_id = Number(option.value);
});
}
} else if (res.op == UserOperation.CreatePost) {
let data = res.data as PostResponse;
if (data.post.creator_id == UserService.Instance.user.id) {

View file

@ -169,7 +169,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
</video>
)}
<div className="ml-4">
<div className="post-title text-wrap-truncate">
<div className="post-title">
<h5 className="mb-0 d-inline">
<Link
className="text-body"
@ -180,7 +180,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
</Link>
</h5>
{post.url && (
<small>
<small class="d-inline-block">
<a
className="ml-2 text-muted font-italic"
href={post.url}