Fixes #137 - vertical alignment
This commit is contained in:
@ -154,10 +154,11 @@ type Props = {
|
|||||||
onDrop={this.handleDrop}
|
onDrop={this.handleDrop}
|
||||||
onDragOver={this.cancelEvent}
|
onDragOver={this.cancelEvent}
|
||||||
onDragEnter={this.cancelEvent}
|
onDragEnter={this.cancelEvent}
|
||||||
|
align="flex-start"
|
||||||
|
justify="center"
|
||||||
auto
|
auto
|
||||||
column
|
|
||||||
align="center"
|
|
||||||
>
|
>
|
||||||
|
<MaxWidth column auto>
|
||||||
<HeaderContainer
|
<HeaderContainer
|
||||||
onClick={this.focusAtStart}
|
onClick={this.focusAtStart}
|
||||||
readOnly={this.props.readOnly}
|
readOnly={this.props.readOnly}
|
||||||
@ -180,6 +181,7 @@ type Props = {
|
|||||||
/>
|
/>
|
||||||
{!this.props.readOnly &&
|
{!this.props.readOnly &&
|
||||||
<ClickablePadding onClick={this.focusAtEnd} grow />}
|
<ClickablePadding onClick={this.focusAtEnd} grow />}
|
||||||
|
</MaxWidth>
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@ -189,6 +191,11 @@ MarkdownEditor.childContextTypes = {
|
|||||||
starred: PropTypes.bool,
|
starred: PropTypes.bool,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const MaxWidth = styled(Flex)`
|
||||||
|
max-width: 50em;
|
||||||
|
height: 100%;
|
||||||
|
`;
|
||||||
|
|
||||||
const HeaderContainer = styled(Flex).attrs({
|
const HeaderContainer = styled(Flex).attrs({
|
||||||
align: 'flex-end',
|
align: 'flex-end',
|
||||||
})`
|
})`
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
padding: 0 3em;
|
width: 100%;
|
||||||
width: 50em;
|
|
||||||
color: #1b2631;
|
color: #1b2631;
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
|
Reference in New Issue
Block a user