Skip to content

Commit 2e3f6e3

Browse files
committed
fixed width of custom markdown editor
1 parent fc88a49 commit 2e3f6e3

File tree

1 file changed

+4
-2
lines changed
  • browser/main/modals/PreferencesModal

1 file changed

+4
-2
lines changed

browser/main/modals/PreferencesModal/UiTab.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class UiTab extends React.Component {
2929
componentDidMount () {
3030
CodeMirror.autoLoadMode(this.codeMirrorInstance.getCodeMirror(), 'javascript')
3131
CodeMirror.autoLoadMode(this.customCSSCM.getCodeMirror(), 'css')
32-
this.customCSSCM.getCodeMirror().setSize(null, '300px')
32+
this.customCSSCM.getCodeMirror().setSize(null, '250px')
3333
this.handleSettingDone = () => {
3434
this.setState({UiAlert: {
3535
type: 'success',
@@ -589,7 +589,9 @@ class UiTab extends React.Component {
589589
{i18n.__('Custom CSS')}
590590
</div>
591591
<div styleName='group-section-control'>
592-
<ReactCodeMirror onChange={e => this.handleUIChange(e)} ref={e => (this.customCSSCM = e)} value={config.preview.customCSS} options={{ lineNumbers: true, mode: 'css', theme: codemirrorTheme }} />
592+
<div styleName='code-mirror'>
593+
<ReactCodeMirror onChange={e => this.handleUIChange(e)} ref={e => (this.customCSSCM = e)} value={config.preview.customCSS} options={{ lineNumbers: true, mode: 'css', theme: codemirrorTheme }} />
594+
</div>
593595
</div>
594596
</div>
595597

0 commit comments

Comments
 (0)