File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,13 @@ import LoadingSpinner from "./LoadingSpinner";
66export default function App ( ) : React . ReactElement {
77 return (
88 < RelayEnvironment >
9- < React . Suspense fallback = { < LoadingSpinner /> } >
9+ < React . Suspense
10+ fallback = {
11+ < div className = "app-loading-spinner" >
12+ < LoadingSpinner />
13+ </ div >
14+ }
15+ >
1016 < div className = "app" >
1117 < Newsfeed />
1218 </ div >
Original file line number Diff line number Diff line change @@ -284,14 +284,19 @@ body {
284284 box-shadow : 0 2px 2px rgba (0 , 0 , 0 , 0.2 );
285285}
286286
287- /* Spinner */
288-
289- .loading-spinner-wrapper {
287+ .app-loading-spinner {
290288 position : absolute;
291289 top : 50vh ;
292290 left : calc (50% - 40px );
293291}
294292
293+ /* Spinner */
294+
295+ .loading-spinner-wrapper {
296+ display : flex;
297+ justify-content : center;
298+ }
299+
295300.loading-spinner {
296301 display : inline-block;
297302 position : relative;
You can’t perform that action at this time.
0 commit comments