mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-15 11:03:51 +08:00
feat: fix empty custom CSS for new rows in signin items table (#2897)
This commit is contained in:
@ -543,7 +543,7 @@ class LoginPage extends React.Component {
|
||||
);
|
||||
} else if (signinItem.name === "Back button") {
|
||||
return (
|
||||
<div>
|
||||
<div className="back-button">
|
||||
<div dangerouslySetInnerHTML={{__html: ("<style>" + signinItem.label?.replaceAll("<style>", "").replaceAll("</style>", "") + "</style>")}} />
|
||||
{
|
||||
this.renderBackButton()
|
||||
@ -1199,8 +1199,7 @@ class LoginPage extends React.Component {
|
||||
renderBackButton() {
|
||||
if (this.state.orgChoiceMode === "None" || this.props.preview === "auto") {
|
||||
return (
|
||||
<Button type="text" size="large" icon={<ArrowLeftOutlined />}
|
||||
className="back-button"
|
||||
<Button className="back-inner-button" type="text" size="large" icon={<ArrowLeftOutlined />}
|
||||
onClick={() => history.back()}>
|
||||
</Button>
|
||||
);
|
||||
|
Reference in New Issue
Block a user