Shared:Components:AppLoader: fix page loader position

This commit is contained in:
Timofey Boyko 2024-03-14 10:43:43 +03:00
parent 61a1bf2be4
commit d2df426b02

View File

@ -3,10 +3,9 @@ import styled from "styled-components";
import { Base } from "@docspace/shared/themes";
export const StyledContainer = styled.div`
// width: 100vw;
// height: 100vh;
width: 100%;
height: 100%;
width: 100vw;
height: 100vh;
display: flex;
align-item: center;
justify-content: center;
@ -14,8 +13,14 @@ export const StyledContainer = styled.div`
background: ${(props) => props.theme.backgroundColor};
z-index: 5000;
position: fixed;
top: 150px;
top: 0;
left: 0;
.pageLoader {
position: fixed;
inset-inline-start: calc(50%-20px);
top: 35%;
}
`;
StyledContainer.defaultProps = { theme: Base };