Skip to content
Snippets Groups Projects
Commit d6c78a68 authored by chris's avatar chris
Browse files

css fix

parent 429a0a82
No related branches found
No related tags found
1 merge request!9Develop
...@@ -17,6 +17,11 @@ const GlobalStyle = createGlobalStyle` ...@@ -17,6 +17,11 @@ const GlobalStyle = createGlobalStyle`
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
overflow-y: hidden;
#root {
height:100vh;
width:100vw;
}
} }
`; `;
const StyledWax = styled(Wax)` const StyledWax = styled(Wax)`
...@@ -36,10 +41,11 @@ class Editoria extends Component { ...@@ -36,10 +41,11 @@ class Editoria extends Component {
placeholder="Type Something..." placeholder="Type Something..."
theme="editoria" theme="editoria"
layout="editoria" layout="editoria"
debug
renderLayout={({ editor, ...props }) => ( renderLayout={({ editor, ...props }) => (
<React.Fragment> <React.Fragment>
<MainMenuBar {...props} /> <MainMenuBar {...props} />
<div className="wax-surface-scroll">{editor}</div> <div className="wax-surface-container">{editor}</div>
</React.Fragment> </React.Fragment>
)} )}
/> />
......
...@@ -99,8 +99,8 @@ class Editor extends Component { ...@@ -99,8 +99,8 @@ class Editor extends Component {
render() { render() {
const { theme } = this.props; const { theme } = this.props;
const WaxTheme = theme const WaxTheme = theme
? `wax-surface-container wax-t-${theme}` ? `wax-surface-scroll wax-t-${theme}`
: "wax-surface-container"; : "wax-surface-scroll";
const editor = <div ref={this.createEditorView} className={WaxTheme} />; const editor = <div ref={this.createEditorView} className={WaxTheme} />;
return this.props.renderLayout({ return this.props.renderLayout({
......
...@@ -46,6 +46,6 @@ ...@@ -46,6 +46,6 @@
right: 0; right: 0;
top: 0; top: 0;
box-sizing: border-box; box-sizing: border-box;
padding-top: 45px; padding: 0;
margin-left: 20px; margin-left: 20px;
} }
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