ISSUE-001 - Have tool page constructed with grid and added some basic scrolling rules for minimum UI size requirements.
This commit is contained in:
1 parent
c3b268da61
commit
4d35b57a77
7 files changed
+79
-63
No files matched your search
+17
-2
@@ -1,7 +1,22 @@
|
||||
import styled from "styled-components";
|
||||
|
||||
export const FullScreenContainer = styled.div`
|
||||
overflow: hidden;
|
||||
type FullScreenContainerProps = {
|
||||
minHeight?: number,
|
||||
minWidth?: number,
|
||||
}
|
||||
|
||||
export const FullScreenContainer = styled.div < FullScreenContainerProps>`
|
||||
--minHeight: ${({ minHeight = 0 }) => `${minHeight}px`};
|
||||
--minWidth: ${({ minWidth = 0 }) => `${minWidth}px`};
|
||||
--overflowY: ${({ minHeight }) => minHeight ? "scroll" : "hidden" };
|
||||
--overflowX: ${({ minWidth }) => minWidth ? "scroll" : "hidden" };
|
||||
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
|
||||
/* Demand a minimum width/height and scroll to support them. */
|
||||
min-height: var(--minHeight);
|
||||
min-width: var(--minWidth);
|
||||
overflow-y: var(--overflowY);
|
||||
overflow-x: var(--overflowX);
|
||||
`;
|
||||
Reference in new issue
Block a user