Fix MarkdownEditor css

This commit is contained in:
Chen-I Lim 2020-11-03 16:38:16 -08:00
parent b8dce8a110
commit 2232d531ee
4 changed files with 7 additions and 6 deletions

View file

@ -13,4 +13,10 @@
margin-bottom: 17px;
flex-grow: 1;
}
> * {
flex: 1 1 auto;
}
> .octo-block-margin {
flex: 0 0 auto;
}
}

View file

@ -2,7 +2,6 @@
.MarkdownEditor {
cursor: text;
width: 100%;
/* CodeMirror / SimpleMDE / EasyMDE overrides */
.CodeMirror {

View file

@ -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}

View file

@ -190,10 +190,6 @@ hr {
width: 100%;
padding-right: 126px;
* {
flex-shrink: 0;
}
}
.octo-block-margin {