Fix MarkdownEditor css
This commit is contained in:
parent
b8dce8a110
commit
2232d531ee
4 changed files with 7 additions and 6 deletions
|
@ -13,4 +13,10 @@
|
|||
margin-bottom: 17px;
|
||||
flex-grow: 1;
|
||||
}
|
||||
> * {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
> .octo-block-margin {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
.MarkdownEditor {
|
||||
cursor: text;
|
||||
width: 100%;
|
||||
/* CodeMirror / SimpleMDE / EasyMDE overrides */
|
||||
|
||||
.CodeMirror {
|
||||
|
|
|
@ -179,7 +179,7 @@ class MarkdownEditor extends React.Component<Props, State> {
|
|||
const element =
|
||||
(<div
|
||||
ref={this.frameRef}
|
||||
className={`MarkdownEditor octo-editor ${this.props.className}`}
|
||||
className={`MarkdownEditor octo-editor ${this.props.className || ''}`}
|
||||
>
|
||||
{previewElement}
|
||||
{editorElement}
|
||||
|
|
|
@ -190,10 +190,6 @@ hr {
|
|||
|
||||
width: 100%;
|
||||
padding-right: 126px;
|
||||
|
||||
* {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.octo-block-margin {
|
||||
|
|
Loading…
Reference in a new issue