Making error boundary layout responsive (#2124)

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev authored and GitHub committed 2021-02-12 10:19:52 +03:00
1 parent f7f2d445a1
commit d40bd0c7d0
2 files changed
+12 -1

No files matched your search

@@ -4,6 +4,17 @@
padding: var(--flex-gap);
word-break: break-all;
.wrapper {
display: grid;
grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
column-gap: 12px;
row-gap: 12px;
@media screen and (max-width: 900px) {
grid-template-columns: auto;
}
}
code {
max-height: none;
border: 5px solid $borderFaintColor;
@@ -49,7 +49,7 @@ export class ErrorBoundary extends React.Component<Props, State> {
<p>
To help us improve the product please report bugs to {slackLink} community or {githubLink} issues tracker.
</p>
<div className="flex gaps">
<div className="wrapper">
<code className="block">
<p className="contrast">Component stack:</p>
{errorInfo.componentStack}