Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix(component): correct preview pane size
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse Küchler committed Dec 11, 2017
1 parent 748d826 commit 1adcfb1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/component/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ injectGlobal`
}
`;

const MainArea = styledComponents(Layout)`
box-sizing: border-box;
height: 100vh;
padding-top: 38px;
`;

const ElementPane = styledComponents(Layout)`
flex-basis: 350px;
`;
Expand Down Expand Up @@ -90,7 +96,7 @@ class App extends React.Component<AppProps> {
return (
<Layout directionVertical>
<Chrome title={title} />
<Layout>
<MainArea>
<Layout directionVertical hasMargins>
<ProjectsPane>
<ProjectList store={this.props.store} />
Expand Down Expand Up @@ -137,7 +143,7 @@ class App extends React.Component<AppProps> {
</ElementPane>

<IconRegistry names={IconName} />
</Layout>
</MainArea>
<DevTools />
</Layout>
);
Expand Down
5 changes: 4 additions & 1 deletion src/lsg/patterns/chrome/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ const StyledChrome = styled(Space).attrs({
size: Size.XS,
sizeLeft: Size.XXL * 3,
inside: true
}) `
})`
position: absolute;
top: 0;
display: flex;
width: 100%;
align-items: center;
font-family: ${fonts().NORMAL_FONT};
height: 38px;
Expand Down

0 comments on commit 1adcfb1

Please sign in to comment.