Merge pull request #1358 from processing/center-loader

Fixes #1284 - Center loader in sketch list, collection list, and asset list
This commit is contained in:
Cassie Tarakajian 2020-04-02 13:45:01 -04:00 committed by GitHub
commit 12433ae00c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 6 deletions

View file

@ -1,9 +1,11 @@
import React from 'react'; import React from 'react';
const Loader = () => ( const Loader = () => (
<div className="loader-container">
<div className="loader"> <div className="loader">
<div className="loader__circle1" /> <div className="loader__circle1" />
<div className="loader__circle2" /> <div className="loader__circle2" />
</div> </div>
</div>
); );
export default Loader; export default Loader;

View file

@ -1,7 +1,7 @@
.asset-table-container { .asset-table-container {
overflow-y: auto; overflow-y: auto;
max-width: 100%; max-width: 100%;
min-height: #{400 / $base-font-size}rem; min-height: 100%;
} }
.asset-table { .asset-table {

View file

@ -1,9 +1,17 @@
.loader-container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.loader { .loader {
width: #{80 / $base-font-size }rem; width: #{80 / $base-font-size }rem;
height: #{80 / $base-font-size}rem; height: #{80 / $base-font-size}rem;
position: relative; position: relative;
margin: #{100 / $base-font-size}rem auto;
} }
.loader__circle1, .loader__circle1,

View file

@ -1,7 +1,7 @@
.sketches-table-container { .sketches-table-container {
overflow-y: auto; overflow-y: auto;
max-width: 100%; max-width: 100%;
min-height: #{400 / $base-font-size}rem; min-height: 100%;
} }
.sketches-table { .sketches-table {