Merge branch 'fix/spinner_size' into fix/reorg_1

This commit is contained in:
Dessalines 2021-07-17 16:22:14 -04:00
commit cb15c1881c
13 changed files with 25 additions and 16 deletions

View file

@ -132,7 +132,7 @@
margin-bottom: 2px;
}
.icon-spinner {
.spinner-large {
width: 4em;
height: 4em;
}

View file

@ -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"}`}
/>
);
}
}

View file

@ -105,7 +105,7 @@ export class Communities extends Component<any, CommunitiesState> {
/>
{this.state.loading ? (
<h5>
<Spinner />
<Spinner large />
</h5>
) : (
<div>

View file

@ -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

View file

@ -53,7 +53,7 @@ export class CreateCommunity extends Component<any, CreateCommunityState> {
/>
{this.state.loading ? (
<h5>
<Spinner />
<Spinner large />
</h5>
) : (
<div class="row">

View file

@ -111,7 +111,7 @@ export class AdminSettings extends Component<any, AdminSettingsState> {
/>
{this.state.loading ? (
<h5>
<Spinner />
<Spinner large />
</h5>
) : (
<div class="row">

View file

@ -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>

View file

@ -407,7 +407,7 @@ export class Modlog extends Component<any, ModlogState> {
/>
{this.state.loading ? (
<h5>
<Spinner />
<Spinner large />
</h5>
) : (
<div>

View file

@ -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">

View file

@ -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">

View file

@ -111,7 +111,7 @@ export class CreatePost extends Component<any, CreatePostState> {
/>
{this.state.loading ? (
<h5>
<Spinner />
<Spinner large />
</h5>
) : (
<div class="row">

View file

@ -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">

View file

@ -110,7 +110,7 @@ export class CreatePrivateMessage extends Component<
/>
{this.state.loading ? (
<h5>
<Spinner />
<Spinner large />
</h5>
) : (
<div class="row">