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
@@ -9,11 +9,10 @@ type MockupBlockProps = {
|
||||
};
|
||||
|
||||
export const MockupBlock = styled.div<MockupBlockProps>`
|
||||
display: flex;
|
||||
min-height: ${({ minHeight }) => minHeight ?? "0"};
|
||||
min-width: ${({ minWidth }) => minWidth ?? "0"};
|
||||
height: ${({ height }) => height ?? "100%"};
|
||||
width: ${({ width }) => width ?? "100%"};
|
||||
background-color: ${({ color }) => color};
|
||||
flex: 1 1 auto;
|
||||
padding: 0.3em;
|
||||
`;
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { Container } from "./styles";
|
||||
import { HeaderBar } from "./styles";
|
||||
|
||||
type RouteHeaderProps = {
|
||||
title: string,
|
||||
@@ -7,9 +7,9 @@ type RouteHeaderProps = {
|
||||
|
||||
export const RouteHeader = React.forwardRef<HTMLHeadElement, RouteHeaderProps>(
|
||||
(props, ref) => (
|
||||
<Container ref={ref}>
|
||||
<HeaderBar ref={ref}>
|
||||
{props.title}
|
||||
</Container>
|
||||
</HeaderBar>
|
||||
),
|
||||
);
|
||||
RouteHeader.displayName = "RouteHeader"; // Required due to forwardRef().
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
import styled from "styled-components";
|
||||
|
||||
export const Container = styled.header`
|
||||
export const HeaderBar = styled.header`
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 5;
|
||||
padding: 0;
|
||||
padding: 0 0.3em;
|
||||
background-color: ${p => p.theme.colors.grey};
|
||||
height: 20px;
|
||||
font-family: ${p => p.theme.fonts.accent};
|
||||
font-size: 0.8em;
|
||||
`;
|
||||
Reference in new issue
Block a user