瀏覽代碼

fix loading

Aykut Saraç 3 年之前
父節點
當前提交
caa9c8b318
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/components/Loading/index.tsx

+ 6 - 4
src/components/Loading/index.tsx

@@ -3,13 +3,15 @@ import styled from "styled-components";
 
 const StyledLoading = styled.div`
   position: fixed;
-  display: flex;
-  flex-direction: column;
-  justify-content: center;
-  align-items: center;
+  top: 0;
+  left: 0;
+  display: grid;
+  place-content: center;
   width: 100%;
   height: 100vh;
   text-align: center;
+  background: ${({ theme }) => theme.BLACK_DARK};
+  z-index: 10;
 `;
 
 const StyledLogo = styled.h2`