mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-30 00:01:15 +00:00
Merge branch 'fix/spinner_size' into fix/reorg_1
This commit is contained in:
commit
cb15c1881c
13 changed files with 25 additions and 16 deletions
|
@ -132,7 +132,7 @@
|
|||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.icon-spinner {
|
||||
.spinner-large {
|
||||
width: 4em;
|
||||
height: 4em;
|
||||
}
|
||||
|
|
|
@ -22,12 +22,21 @@ export class Icon extends Component<IconProps, any> {
|
|||
}
|
||||
}
|
||||
|
||||
export class Spinner extends Component<any, any> {
|
||||
interface SpinnerProps {
|
||||
large?: boolean;
|
||||
}
|
||||
|
||||
export class Spinner extends Component<SpinnerProps, any> {
|
||||
constructor(props: any, context: any) {
|
||||
super(props, context);
|
||||
}
|
||||
|
||||
render() {
|
||||
return <Icon icon="spinner" classes="icon-spinner spin" />;
|
||||
return (
|
||||
<Icon
|
||||
icon="spinner"
|
||||
classes={`spin ${this.props.large && "spinner-large"}`}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ export class Communities extends Component<any, CommunitiesState> {
|
|||
/>
|
||||
{this.state.loading ? (
|
||||
<h5>
|
||||
<Spinner />
|
||||
<Spinner large />
|
||||
</h5>
|
||||
) : (
|
||||
<div>
|
||||
|
|
|
@ -243,7 +243,7 @@ export class Community extends Component<any, State> {
|
|||
<div class="container">
|
||||
{this.state.communityLoading ? (
|
||||
<h5>
|
||||
<Spinner />
|
||||
<Spinner large />
|
||||
</h5>
|
||||
) : (
|
||||
<div class="row">
|
||||
|
@ -282,7 +282,7 @@ export class Community extends Component<any, State> {
|
|||
return this.state.dataType == DataType.Post ? (
|
||||
this.state.postsLoading ? (
|
||||
<h5>
|
||||
<Spinner />
|
||||
<Spinner large />
|
||||
</h5>
|
||||
) : (
|
||||
<PostListings
|
||||
|
@ -294,7 +294,7 @@ export class Community extends Component<any, State> {
|
|||
)
|
||||
) : this.state.commentsLoading ? (
|
||||
<h5>
|
||||
<Spinner />
|
||||
<Spinner large />
|
||||
</h5>
|
||||
) : (
|
||||
<CommentNodes
|
||||
|
|
|
@ -53,7 +53,7 @@ export class CreateCommunity extends Component<any, CreateCommunityState> {
|
|||
/>
|
||||
{this.state.loading ? (
|
||||
<h5>
|
||||
<Spinner />
|
||||
<Spinner large />
|
||||
</h5>
|
||||
) : (
|
||||
<div class="row">
|
||||
|
|
|
@ -111,7 +111,7 @@ export class AdminSettings extends Component<any, AdminSettingsState> {
|
|||
/>
|
||||
{this.state.loading ? (
|
||||
<h5>
|
||||
<Spinner />
|
||||
<Spinner large />
|
||||
</h5>
|
||||
) : (
|
||||
<div class="row">
|
||||
|
|
|
@ -549,7 +549,7 @@ export class Home extends Component<any, HomeState> {
|
|||
<div class="main-content-wrapper">
|
||||
{this.state.loading ? (
|
||||
<h5>
|
||||
<Spinner />
|
||||
<Spinner large />
|
||||
</h5>
|
||||
) : (
|
||||
<div>
|
||||
|
|
|
@ -407,7 +407,7 @@ export class Modlog extends Component<any, ModlogState> {
|
|||
/>
|
||||
{this.state.loading ? (
|
||||
<h5>
|
||||
<Spinner />
|
||||
<Spinner large />
|
||||
</h5>
|
||||
) : (
|
||||
<div>
|
||||
|
|
|
@ -140,7 +140,7 @@ export class Inbox extends Component<any, InboxState> {
|
|||
<div class="container">
|
||||
{this.state.loading ? (
|
||||
<h5>
|
||||
<Spinner />
|
||||
<Spinner large />
|
||||
</h5>
|
||||
) : (
|
||||
<div class="row">
|
||||
|
|
|
@ -273,7 +273,7 @@ export class Person extends Component<any, PersonState> {
|
|||
<div class="container">
|
||||
{this.state.loading ? (
|
||||
<h5>
|
||||
<Spinner />
|
||||
<Spinner large />
|
||||
</h5>
|
||||
) : (
|
||||
<div class="row">
|
||||
|
|
|
@ -111,7 +111,7 @@ export class CreatePost extends Component<any, CreatePostState> {
|
|||
/>
|
||||
{this.state.loading ? (
|
||||
<h5>
|
||||
<Spinner />
|
||||
<Spinner large />
|
||||
</h5>
|
||||
) : (
|
||||
<div class="row">
|
||||
|
|
|
@ -252,7 +252,7 @@ export class Post extends Component<any, PostState> {
|
|||
<div class="container">
|
||||
{this.state.loading ? (
|
||||
<h5>
|
||||
<Spinner />
|
||||
<Spinner large />
|
||||
</h5>
|
||||
) : (
|
||||
<div class="row">
|
||||
|
|
|
@ -110,7 +110,7 @@ export class CreatePrivateMessage extends Component<
|
|||
/>
|
||||
{this.state.loading ? (
|
||||
<h5>
|
||||
<Spinner />
|
||||
<Spinner large />
|
||||
</h5>
|
||||
) : (
|
||||
<div class="row">
|
||||
|
|
Loading…
Reference in a new issue