mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 05:50:19 +08:00
Fix bug in form CSS
This commit is contained in:
@ -556,8 +556,8 @@ class ApplicationEditPage extends React.Component {
|
|||||||
{Setting.getLabel(i18next.t("general:URL"), i18next.t("general:URL - Tooltip"))} :
|
{Setting.getLabel(i18next.t("general:URL"), i18next.t("general:URL - Tooltip"))} :
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={23} >
|
<Col span={23} >
|
||||||
<Input prefix={<LinkOutlined />} value={this.state.application.backgroundUrl} onChange={e => {
|
<Input prefix={<LinkOutlined />} value={this.state.application.formBackgroundUrl} onChange={e => {
|
||||||
this.updateApplicationField("backgroundUrl", e.target.value);
|
this.updateApplicationField("formBackgroundUrl", e.target.value);
|
||||||
}} />
|
}} />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
@ -566,8 +566,8 @@ class ApplicationEditPage extends React.Component {
|
|||||||
{i18next.t("general:Preview")}:
|
{i18next.t("general:Preview")}:
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={23} >
|
<Col span={23} >
|
||||||
<a target="_blank" rel="noreferrer" href={this.state.application.backgroundUrl}>
|
<a target="_blank" rel="noreferrer" href={this.state.application.formBackgroundUrl}>
|
||||||
<img src={this.state.application.backgroundUrl} alt={this.state.application.backgroundUrl} height={90} style={{marginBottom: "20px"}} />
|
<img src={this.state.application.formBackgroundUrl} alt={this.state.application.formBackgroundUrl} height={90} style={{marginBottom: "20px"}} />
|
||||||
</a>
|
</a>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
@ -715,12 +715,12 @@ export function renderLogo(application) {
|
|||||||
if (application.homepageUrl !== "") {
|
if (application.homepageUrl !== "") {
|
||||||
return (
|
return (
|
||||||
<a target="_blank" rel="noreferrer" href={application.homepageUrl}>
|
<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>
|
</a>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return (
|
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"}} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user