change container height to 100vh (#12317)

Co-authored-by: Pawan Kumar <pawankumar@Pawans-MacBook-Pro.local>
This commit is contained in:
Pawan Kumar 2022-03-29 15:13:02 +05:30 committed by GitHub
parent 23c12f4afc
commit e7498f2808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,7 @@ function CanvasContainer() {
</Centered>
);
let node: ReactNode;
if (isFetchingPage) {
node = pageLoading;
}
@ -71,7 +72,9 @@ function CanvasContainer() {
"mt-9": shouldHaveTopMargin,
})}
key={currentPageId}
style={{ height: `calc(100% - ${shouldHaveTopMargin ? "2rem" : "0px"})` }}
style={{
height: `calc(100vh - ${shouldHaveTopMargin ? "2rem" : "0px"})`,
}}
>
{node}
</Container>