Commit d6c78a68 authored by chris's avatar chris

css fix

parent 429a0a82
......@@ -17,6 +17,11 @@ const GlobalStyle = createGlobalStyle`
body {
margin: 0;
padding: 0;
overflow-y: hidden;
#root {
height:100vh;
width:100vw;
}
}
`;
const StyledWax = styled(Wax)`
......@@ -36,10 +41,11 @@ class Editoria extends Component {
placeholder="Type Something..."
theme="editoria"
layout="editoria"
debug
renderLayout={({ editor, ...props }) => (
<React.Fragment>
<MainMenuBar {...props} />
<div className="wax-surface-scroll">{editor}</div>
<div className="wax-surface-container">{editor}</div>
</React.Fragment>
)}
/>
......
......@@ -99,8 +99,8 @@ class Editor extends Component {
render() {
const { theme } = this.props;
const WaxTheme = theme
? `wax-surface-container wax-t-${theme}`
: "wax-surface-container";
? `wax-surface-scroll wax-t-${theme}`
: "wax-surface-scroll";
const editor = <div ref={this.createEditorView} className={WaxTheme} />;
return this.props.renderLayout({
......
......@@ -46,6 +46,6 @@
right: 0;
top: 0;
box-sizing: border-box;
padding-top: 45px;
padding: 0;
margin-left: 20px;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment