Skip to content

Commit

Permalink
add minimum width to both containers
Browse files Browse the repository at this point in the history
  • Loading branch information
agneym committed Dec 18, 2019
1 parent f52b4d7 commit 864ee96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playground/src/Editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import {
StyledTabPanel,
} from "../TabStyles";

const TabContainer = styled(StyledTabs)``;
const TabContainer = styled(StyledTabs)`
min-width: ${props => props.theme.container.minWidth};
`;

interface IProps {
width: number;
Expand Down
1 change: 1 addition & 0 deletions playground/src/TabStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const StyledTabs = styled(Tabs)`
display: flex;
flex-direction: column;
width: 50%;
min-width: ${props => props.theme.container.minWidth};
${media.phone`
width: 100%;
Expand Down
1 change: 1 addition & 0 deletions playground/src/utils/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const theme: DefaultTheme = {
container: {
border: "0.1em solid rgba(0, 0, 0, 0.3)",
minHeight: "20em",
minWidth: "20em",
},
error: {
background: "#e74c3c",
Expand Down

0 comments on commit 864ee96

Please sign in to comment.