2019-11-22 14:02:55 +00:00
|
|
|
import styled from "styled-components";
|
|
|
|
|
|
2022-03-17 04:47:17 +00:00
|
|
|
/**
|
|
|
|
|
* Common component, mostly use to show loader / message
|
|
|
|
|
*
|
|
|
|
|
* Used By:
|
|
|
|
|
* AppViewerPageContainer
|
|
|
|
|
* - parent component AppViewer -> AppViewerBody's height calculated good enough
|
|
|
|
|
* - inherited height works fine here.
|
|
|
|
|
* CanvasContainer
|
|
|
|
|
* - calculated height looks good
|
|
|
|
|
* DefaultOrgPage
|
|
|
|
|
* - calculated height looks good
|
|
|
|
|
*/
|
|
|
|
|
export default styled.div<{
|
|
|
|
|
isInheritedHeight?: boolean;
|
|
|
|
|
}>`
|
|
|
|
|
height: ${(props) =>
|
|
|
|
|
props.isInheritedHeight
|
|
|
|
|
? "inherit"
|
|
|
|
|
: `calc(100vh - ${props.theme.smallHeaderHeight})`};
|
2019-11-22 14:02:55 +00:00
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
2021-08-31 07:57:22 +00:00
|
|
|
position: absolute;
|
2019-11-22 14:02:55 +00:00
|
|
|
`;
|