feat: support application.formCss in forget-password page (#3733)

This commit is contained in:
DacongDA 2025-04-19 22:59:21 +08:00 committed by GitHub
parent 0860cbf343
commit 56bcef0592
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -53,6 +53,14 @@ const template = `<style>
background-color: #333333; background-color: #333333;
box-shadow: 0 0 30px 20px rgba(255, 255, 255, 0.20); box-shadow: 0 0 30px 20px rgba(255, 255, 255, 0.20);
} }
.forget-content {
padding: 10px 100px 20px;
margin: 30px auto;
border: 2px solid #fff;
border-radius: 7px;
background-color: rgb(255 255 255);
box-shadow: 0 0 20px rgb(0 0 0 / 20%);
}
</style>`; </style>`;
const previewGrid = Setting.isMobile() ? 22 : 11; const previewGrid = Setting.isMobile() ? 22 : 11;

View File

@ -471,6 +471,8 @@ class ForgetPage extends React.Component {
<React.Fragment> <React.Fragment>
<CustomGithubCorner /> <CustomGithubCorner />
<div className="forget-content" style={{padding: Setting.isMobile() ? "0" : null, boxShadow: Setting.isMobile() ? "none" : null}}> <div className="forget-content" style={{padding: Setting.isMobile() ? "0" : null, boxShadow: Setting.isMobile() ? "none" : null}}>
{Setting.inIframe() || Setting.isMobile() ? null : <div dangerouslySetInnerHTML={{__html: application.formCss}} />}
{Setting.inIframe() || !Setting.isMobile() ? null : <div dangerouslySetInnerHTML={{__html: application.formCssMobile}} />}
<Button type="text" <Button type="text"
style={{position: "relative", left: Setting.isMobile() ? "10px" : "-90px", top: 0}} style={{position: "relative", left: Setting.isMobile() ? "10px" : "-90px", top: 0}}
icon={<ArrowLeftOutlined style={{fontSize: "24px"}} />} icon={<ArrowLeftOutlined style={{fontSize: "24px"}} />}