Skip to content

Commit

Permalink
Make big error alerts fit within the viewport. (#1266)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice1319 authored Nov 8, 2024
1 parent e4aa909 commit e2e279c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ function OrderSubmitResultDetails({ msg, uuid }: { msg: string | React.JSX.Eleme
</span>
</Paragraph>
</div>
{msg}
<pre>
<div className={submitResultStyles.orderSubmitResultContent}>{msg}</div>
</pre>
</div>
);
}
Expand Down
2 changes: 2 additions & 0 deletions src/styles/submit-alert.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
margin-bottom: 20px;
margin-left: 30px;
margin-right: 30px;
max-width: 100%;
overflow: hidden;
}
5 changes: 5 additions & 0 deletions src/styles/submit-result.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@
.result-main-details {
margin-bottom: 0 !important;
}

.order-submit-result-content {
white-space: pre-wrap;
word-break: break-all;
}

0 comments on commit e2e279c

Please sign in to comment.