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:
commit
12433ae00c
4 changed files with 16 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue