mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-26 14:21:19 +00:00
Fix minor issue with selector. Fix issue with truncate wrapping.
This commit is contained in:
parent
845c2b70a5
commit
83d17b2643
2 changed files with 8 additions and 6 deletions
10
ui/src/components/post-form.tsx
vendored
10
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, {});
|
||||
selector.on('selectr.select', option => {
|
||||
this.state.postForm.community_id = Number(option.value);
|
||||
});
|
||||
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}
|
||||
|
|
Loading…
Reference in a new issue