diff --git a/packages/core-components/src/layout/ErrorPage/ErrorPage.tsx b/packages/core-components/src/layout/ErrorPage/ErrorPage.tsx index 823571d8b3..9bbf600aee 100644 --- a/packages/core-components/src/layout/ErrorPage/ErrorPage.tsx +++ b/packages/core-components/src/layout/ErrorPage/ErrorPage.tsx @@ -15,7 +15,6 @@ */ import Grid from '@material-ui/core/Grid'; -import Box from '@material-ui/core/Box'; import { makeStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import React from 'react'; @@ -38,18 +37,12 @@ export type ErrorPageClassKey = 'container' | 'title' | 'subtitle'; const useStyles = makeStyles( theme => ({ - parent: { + container: { padding: theme.spacing(8), [theme.breakpoints.down('xs')]: { padding: theme.spacing(2), }, }, - container: { - marginBottom: theme.spacing(5), - [theme.breakpoints.down('xs')]: { - marginBottom: theme.spacing(4), - }, - }, title: { paddingBottom: theme.spacing(5), [theme.breakpoints.down('xs')]: { @@ -60,6 +53,13 @@ const useStyles = makeStyles( subtitle: { color: theme.palette.textSubtle, }, + goBackTitle: { + color: theme.palette.textSubtle, + marginBottom: theme.spacing(5), + [theme.breakpoints.down('xs')]: { + marginBottom: theme.spacing(4), + }, + }, text: { fontFamily: 'monospace', whiteSpace: 'pre', @@ -88,56 +88,52 @@ export function ErrorPage(props: IErrorPageProps) { const support = useSupportConfig(); return ( - - - - - ERROR {status}: {statusMessage} - - - {additionalInfo} - - - Looks like someone dropped the mic! - - - navigate(-1)} - > - Go back - - ... or please{' '} - contact support if you - think this is a bug. - - + + + + ERROR {status}: {statusMessage} + + + {additionalInfo} + + + Looks like someone dropped the mic! + + + navigate(-1)}> + Go back + + ... or please{' '} + contact support if you + think this is a bug. + + {stack && ( + + + + Stack Trace + + {stack} + + + + + + + + )} + + - {stack && ( - - - - Stack Trace - - {stack} - - - - - - - - )} - + ); } diff --git a/packages/core-components/src/layout/ErrorPage/MicDrop.tsx b/packages/core-components/src/layout/ErrorPage/MicDrop.tsx index d55c50bd29..a16de3f5e6 100644 --- a/packages/core-components/src/layout/ErrorPage/MicDrop.tsx +++ b/packages/core-components/src/layout/ErrorPage/MicDrop.tsx @@ -21,7 +21,7 @@ import MicDropSvgUrl from './mic-drop.svg'; const useStyles = makeStyles( theme => ({ micDrop: { - maxWidth: '60%', + maxWidth: '80%', bottom: theme.spacing(2), right: theme.spacing(2), [theme.breakpoints.down('xs')]: {