1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

fix style

This commit is contained in:
Sosuke Suzuki
2017-12-18 18:39:40 +09:00
parent ea064deeb8
commit 6ef0e325e2
2 changed files with 28 additions and 30 deletions

View File

@@ -35,8 +35,8 @@ class MarkdownSplitEditor extends React.Component {
const storage = findStorage(storageKey) const storage = findStorage(storageKey)
return ( return (
<div styleName='root'> <div styleName='root'>
<div styleName='editor'>
<CodeEditor <CodeEditor
styleName='codeEditor'
ref='code' ref='code'
mode='GitHub Flavored Markdown' mode='GitHub Flavored Markdown'
value={value} value={value}
@@ -48,9 +48,8 @@ class MarkdownSplitEditor extends React.Component {
storageKey={storageKey} storageKey={storageKey}
onChange={e => this.handleOnChange(e)} onChange={e => this.handleOnChange(e)}
/> />
</div>
<div styleName='preview'>
<MarkdownPreview <MarkdownPreview
styleName='preview'
theme={config.ui.theme} theme={config.ui.theme}
keyMap={config.editor.keyMap} keyMap={config.editor.keyMap}
fontSize={config.preview.fontFamily} fontSize={config.preview.fontFamily}
@@ -64,7 +63,6 @@ class MarkdownSplitEditor extends React.Component {
storagePath={storage.path} storagePath={storage.path}
/> />
</div> </div>
</div>
) )
} }
} }

View File

@@ -3,7 +3,7 @@
height 100% height 100%
font-size 30px font-size 30px
display flex display flex
.editor .codeEditor
width 50% width 50%
.preview .preview
width 50% width 50%