1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +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,35 +35,33 @@ class MarkdownSplitEditor extends React.Component {
const storage = findStorage(storageKey)
return (
<div styleName='root'>
<div styleName='editor'>
<CodeEditor
ref='code'
mode='GitHub Flavored Markdown'
value={value}
theme={config.editor.theme}
keyMap={config.editor.keyMap}
fontFamily={config.editor.fontFamily}
indentType={config.editor.indentType}
scrollPastEnd={config.editor.scrollPastEnd}
storageKey={storageKey}
onChange={e => this.handleOnChange(e)}
/>
</div>
<div styleName='preview'>
<MarkdownPreview
theme={config.ui.theme}
keyMap={config.editor.keyMap}
fontSize={config.preview.fontFamily}
codeBlockTheme={config.preview.codeBlockTheme}
codeBlockFontFamily={config.editor.fontFamily}
lineNumber={config.preview.lineNumber}
ref='preview'
tabInde='0'
value={value}
showCopyNotification={config.ui.showCopyNotification}
storagePath={storage.path}
/>
</div>
<CodeEditor
styleName='codeEditor'
ref='code'
mode='GitHub Flavored Markdown'
value={value}
theme={config.editor.theme}
keyMap={config.editor.keyMap}
fontFamily={config.editor.fontFamily}
indentType={config.editor.indentType}
scrollPastEnd={config.editor.scrollPastEnd}
storageKey={storageKey}
onChange={e => this.handleOnChange(e)}
/>
<MarkdownPreview
styleName='preview'
theme={config.ui.theme}
keyMap={config.editor.keyMap}
fontSize={config.preview.fontFamily}
codeBlockTheme={config.preview.codeBlockTheme}
codeBlockFontFamily={config.editor.fontFamily}
lineNumber={config.preview.lineNumber}
ref='preview'
tabInde='0'
value={value}
showCopyNotification={config.ui.showCopyNotification}
storagePath={storage.path}
/>
</div>
)
}

View File

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