Fixes #1284 - Center loader in sketch list, collection list, and asset list

This commit is contained in:
Cassie Tarakajian 2020-04-02 13:43:34 -04:00
parent eeb7e345f3
commit 68d4bddf66
4 changed files with 16 additions and 6 deletions

View file

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

View file

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

View file

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

View file

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