Skip to content

Commit

Permalink
improve style for error dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Nov 4, 2024
1 parent e22314b commit d1f5966
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui-package/src/components/SubmitDepositsForm/DepositEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ const DepositEntry = (props: IDepositEntryProps): React.ReactElement => {
}
</button>
{errorModal && (
<Modal show={true} onHide={() => setErrorModal(null)} size="lg">
<Modal show={true} onHide={() => setErrorModal(null)} size="lg" className="submit-deposit-modal">
<Modal.Header closeButton>
<Modal.Title>Deposit Transaction Failed</Modal.Title>
</Modal.Header>
<Modal.Body>
<pre className="m-0">{errorModal}</pre>
<pre className="m-0 deposit-error">{errorModal}</pre>
</Modal.Body>
<Modal.Footer>
<button className="btn btn-primary" onClick={() => setErrorModal(null)}>Close</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

.submit-deposit-modal {
.deposit-error {
text-wrap: wrap;
word-break: break-word;
}
}

0 comments on commit d1f5966

Please sign in to comment.