Update formCss default value

This commit is contained in:
Gucheng Wang
2022-10-23 01:27:01 +08:00
parent 52b692c8ad
commit 2bdf467e3a
2 changed files with 19 additions and 19 deletions

View File

@ -96,33 +96,34 @@
.side-image {
display: none;
@media screen and (min-width: 1100px) {
display: block;
position: relative;
width: 500px;
border-right: 0.5px solid rgb(196, 203, 215);
border-right: 0.5px solid rgb(196 203 215);
}
}
.forget-content {
padding: 10px 100px 20px;
border: 2px solid #ffffff;
border: 2px solid #fff;
border-radius: 7px;
background-color: rgb(255, 255, 255);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.20);
background-color: rgb(255 255 255);
box-shadow: 0 0 20px rgb(0 0 0 / 20%);
}
.login-panel {
margin-top: 50px;
margin-bottom: 50px;
display: flex;
background-color: rgb(255, 255, 255);
background-color: rgb(255 255 255);
overflow: hidden;
}
.login-form {
text-align: center;
padding: 30px;
padding: 10px;
}
.login-content {

View File

@ -40,17 +40,16 @@ require("codemirror/mode/css/css");
const {Option} = Select;
const template = `<!--template: please copy and paste-->
<style>
const template = `<style>
.login-panel{
padding: 40px 70px 0 70px;
border-radius: 10px;
background-color: #ffffff;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.20);
box-shadow: 0 0 30px 20px rgba(0, 0, 0, 0.20);
}
</style>
`;
const sideTemplate = `<!--template: please copy and paste-->
<style>
</style>`;
const sideTemplate = `<style>
.left-model{
text-align: center;
padding: 30px;
@ -630,7 +629,7 @@ class ApplicationEditPage extends React.Component {
<Popover placement="right" content={
<div style={{width: "900px", height: "300px"}} >
<CodeMirror value={this.state.application.formCss === "" ? template : this.state.application.formCss}
options={{mode: "htmlmixed", theme: "material-darker"}}
options={{mode: "css", theme: "material-darker"}}
onBeforeChange={(editor, data, value) => {
this.updateApplicationField("formCss", value);
}}