forked from Gitlink/forgeplus-react
md的默认高度,以及编辑时change md的背景色
This commit is contained in:
parent
6055d62914
commit
326847f697
|
@ -78,8 +78,7 @@ class CoderRootFileDetail extends Component{
|
|||
|
||||
// 确认修改文件
|
||||
UpdateFile=()=>{
|
||||
console.log("user", this.props)
|
||||
const { author , branch , detail}= this.props;
|
||||
const { branch , detail}= this.props;
|
||||
const { projectsId } = this.props.match.params;
|
||||
const { value } = this.state;
|
||||
const url =`/repositories/${projectsId}/update_file.json`;
|
||||
|
@ -143,7 +142,7 @@ class CoderRootFileDetail extends Component{
|
|||
}
|
||||
</p>
|
||||
</div>
|
||||
<div className="content-file">
|
||||
<div className={readOnly ? "content-file" :"content-file edit"}>
|
||||
{
|
||||
detail.direct_download ?
|
||||
<div className="text-center">
|
||||
|
@ -154,8 +153,6 @@ class CoderRootFileDetail extends Component{
|
|||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -572,6 +572,9 @@ border: 1px solid #2185d0;
|
|||
border-radius: 4px;
|
||||
height: auto;
|
||||
}
|
||||
.content-file.edit .CodeMirror{
|
||||
background-color: #fff;
|
||||
}
|
||||
.content-file .CodeMirror .CodeMirror-scroll{
|
||||
min-height: 450px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue