forked from nutomic/lemmy
Some front end fixes.
This commit is contained in:
parent
10223d5aef
commit
cf0c0a5824
3 changed files with 23 additions and 12 deletions
6
ui/src/components/community.tsx
vendored
6
ui/src/components/community.tsx
vendored
|
@ -136,6 +136,7 @@ export class Community extends Component<any, State> {
|
|||
render() {
|
||||
return (
|
||||
<div class="container">
|
||||
{this.selects()}
|
||||
{this.state.loading ? (
|
||||
<h5>
|
||||
<svg class="icon icon-spinner spin">
|
||||
|
@ -158,7 +159,6 @@ export class Community extends Component<any, State> {
|
|||
</small>
|
||||
)}
|
||||
</h5>
|
||||
{this.selects()}
|
||||
{this.listings()}
|
||||
{this.paginator()}
|
||||
</div>
|
||||
|
@ -200,7 +200,7 @@ export class Community extends Component<any, State> {
|
|||
onChange={this.handleDataTypeChange}
|
||||
/>
|
||||
|
||||
<span class="mx-2">
|
||||
<span class="mx-3">
|
||||
<SortSelect sort={this.state.sort} onChange={this.handleSortChange} />
|
||||
</span>
|
||||
<a
|
||||
|
@ -209,7 +209,7 @@ export class Community extends Component<any, State> {
|
|||
}`}
|
||||
target="_blank"
|
||||
>
|
||||
<svg class="icon mx-2 text-muted small">
|
||||
<svg class="icon text-muted small">
|
||||
<use xlinkHref="#icon-rss">#</use>
|
||||
</svg>
|
||||
</a>
|
||||
|
|
4
ui/src/components/main.tsx
vendored
4
ui/src/components/main.tsx
vendored
|
@ -386,6 +386,7 @@ export class Main extends Component<any, MainState> {
|
|||
posts() {
|
||||
return (
|
||||
<div class="main-content-wrapper">
|
||||
{this.selects()}
|
||||
{this.state.loading ? (
|
||||
<h5>
|
||||
<svg class="icon icon-spinner spin">
|
||||
|
@ -394,7 +395,6 @@ export class Main extends Component<any, MainState> {
|
|||
</h5>
|
||||
) : (
|
||||
<div>
|
||||
{this.selects()}
|
||||
{this.listings()}
|
||||
{this.paginator()}
|
||||
</div>
|
||||
|
@ -428,7 +428,7 @@ export class Main extends Component<any, MainState> {
|
|||
type_={this.state.dataType}
|
||||
onChange={this.handleDataTypeChange}
|
||||
/>
|
||||
<span class="mx-2">
|
||||
<span class="mx-3">
|
||||
<ListingTypeSelect
|
||||
type_={this.state.listingType}
|
||||
onChange={this.handleListingTypeChange}
|
||||
|
|
11
ui/src/components/post-listing.tsx
vendored
11
ui/src/components/post-listing.tsx
vendored
|
@ -171,6 +171,16 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
<div className="ml-4">
|
||||
<div className="post-title">
|
||||
<h5 className="mb-0 d-inline">
|
||||
{this.props.showBody && post.url ? (
|
||||
<a
|
||||
className="text-body"
|
||||
href={post.url}
|
||||
target="_blank"
|
||||
title={post.url}
|
||||
>
|
||||
{post.name}
|
||||
</a>
|
||||
) : (
|
||||
<Link
|
||||
className="text-body"
|
||||
to={`/post/${post.id}`}
|
||||
|
@ -178,6 +188,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
>
|
||||
{post.name}
|
||||
</Link>
|
||||
)}
|
||||
</h5>
|
||||
{post.url && (
|
||||
<small class="d-inline-block">
|
||||
|
|
Loading…
Reference in a new issue