Sfoglia il codice sorgente

fix: pageLoading positon

kokoroli 5 anni fa
parent
commit
84fd521ee4
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      src/components/PageLoading/index.jsx

+ 4 - 4
src/components/PageLoading/index.jsx

@@ -16,11 +16,11 @@ export const PageLoading = {
     const style = {
       textAlign: 'center',
       background: 'rgba(0,0,0,0.6)',
-      position: 'absolute',
-      width: '100%',
-      height: '100%',
-      left: 0,
+      position: 'fixed',
       top: 0,
+      bottom: 0,
+      left: 0,
+      right: 0,
       zIndex: 1100
     }
     const spinStyle = {