Fixed MarkdownEditor outgrow etc

This commit is contained in:
Jori Lallo
2016-05-17 23:53:05 -07:00
parent 2006a64e24
commit 582b937961
8 changed files with 55 additions and 6 deletions

View File

@@ -6,17 +6,20 @@ import HeaderMenu from './components/HeaderMenu';
import Flex from 'components/Flex';
import styles from './Layout.scss';
import classNames from 'classnames/bind';
const cx = classNames.bind(styles);
class Layout extends React.Component {
static propTypes = {
actions: React.PropTypes.node,
title: React.PropTypes.node,
fixed: React.PropTypes.bool,
}
render() {
return (
<div className={ styles.container }>
<div className={ styles.header }>
<div className={ cx(styles.header, { fixed: this.props.fixed }) }>
<div className={ styles.teamName }>
<Link to="/">{ this.props.teamName }</Link>
</div>

View File

@@ -8,6 +8,15 @@
width: 100%;
}
.fixed {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 900;
background: #fff;
}
.header {
display: flex;
justify-content: space-between;

View File

@@ -35,4 +35,4 @@ Title.propTypes = {
placeholder: React.PropTypes.string,
}
export default Title;
export default Title;

View File

@@ -0,0 +1,18 @@
import React from 'react';
const styles = {
paddingTop: "100px",
cursor: "text",
};
const ClickablePadding = (props) => {
return (
<div style={ styles } onClick={ props.onClick }>&nbsp;</div>
)
};
ClickablePadding.propTypes = {
onClick: React.PropTypes.func,
};
export default ClickablePadding;

View File

@@ -0,0 +1,2 @@
import ClickablePadding from './ClickablePadding';
export default ClickablePadding;