Skip to content

Commit

Permalink
fix: adjust error result position (casdoor#1683)
Browse files Browse the repository at this point in the history
  • Loading branch information
leo220yuyaodog authored Mar 25, 2023
1 parent 337ee2f commit daf3d37
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions web/src/auth/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,20 @@ export function renderMessage(msg) {
export function renderMessageLarge(ths, msg) {
if (msg !== null) {
return (
<div style={{display: "inline"}}>
<Result
status="error"
title="There was a problem signing you in.."
subTitle={msg}
extra={[
<Button type="primary" key="back" onClick={() => {
window.history.go(-2);
}}>
<Result
style={{margin: "0px auto"}}
status="error"
title="There was a problem signing you in.."
subTitle={msg}
extra={[
<Button type="primary" key="back" onClick={() => {
window.history.go(-2);
}}>
Back
</Button>,
]}
>
</Result>
</div>
</Button>,
]}
>
</Result>
);
} else {
return null;
Expand Down

0 comments on commit daf3d37

Please sign in to comment.