feat: fix empty custom CSS for new rows in signin items table (#2897)

This commit is contained in:
DacongDA
2024-04-24 15:19:30 +08:00
committed by GitHub
parent af2d26daf2
commit 8dbb041a34
3 changed files with 18 additions and 4 deletions

View File

@ -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>
);