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
|
||||
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) {
|
||||
|
|
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>
|
||||
)}
|
||||
<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}
|
||||
|
|
Reference in a new issue