ISSUE-001 - Have tool page constructed with grid and added some basic scrolling rules for minimum UI size requirements.

This commit is contained in:
Kyle Geib committed 2021-12-20 16:49:49 -05:00
1 parent c3b268da61
commit 4d35b57a77
7 files changed
+79 -63

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ export default function Broadcast() {
});
return (
<FullScreenContainer>
<FullScreenContainer minHeight={728} minWidth={1200}>
<RouteHeader ref={ref} title="Broadcast Page" />
<Layout headerHeight={height} />
</FullScreenContainer>
+17 -2
View File
@@ -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);
`;