Fix bug in form CSS

This commit is contained in:
Gucheng Wang
2022-09-10 01:33:44 +08:00
parent 1edb91b3a3
commit e8d2906e3c
2 changed files with 6 additions and 6 deletions

View File

@ -556,8 +556,8 @@ class ApplicationEditPage extends React.Component {
{Setting.getLabel(i18next.t("general:URL"), i18next.t("general:URL - Tooltip"))} :
</Col>
<Col span={23} >
<Input prefix={<LinkOutlined />} value={this.state.application.backgroundUrl} onChange={e => {
this.updateApplicationField("backgroundUrl", e.target.value);
<Input prefix={<LinkOutlined />} value={this.state.application.formBackgroundUrl} onChange={e => {
this.updateApplicationField("formBackgroundUrl", e.target.value);
}} />
</Col>
</Row>
@ -566,8 +566,8 @@ class ApplicationEditPage extends React.Component {
{i18next.t("general:Preview")}:
</Col>
<Col span={23} >
<a target="_blank" rel="noreferrer" href={this.state.application.backgroundUrl}>
<img src={this.state.application.backgroundUrl} alt={this.state.application.backgroundUrl} height={90} style={{marginBottom: "20px"}} />
<a target="_blank" rel="noreferrer" href={this.state.application.formBackgroundUrl}>
<img src={this.state.application.formBackgroundUrl} alt={this.state.application.formBackgroundUrl} height={90} style={{marginBottom: "20px"}} />
</a>
</Col>
</Row>

View File

@ -715,12 +715,12 @@ export function renderLogo(application) {
if (application.homepageUrl !== "") {
return (
<a target="_blank" rel="noreferrer" href={application.homepageUrl}>
<img width={250} src={application.logo} alt={application.displayName} style={{marginBottom: "30px"}} />
<img width={250} src={application.logo} alt={application.displayName} style={{marginBottom: "10px"}} />
</a>
);
} else {
return (
<img width={250} src={application.logo} alt={application.displayName} style={{marginBottom: "30px"}} />
<img width={250} src={application.logo} alt={application.displayName} style={{marginBottom: "10px"}} />
);
}
}