mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Change server error overlay to white to be consistent with react-error-overlay (#5104)
Makes the server error overlay white so it doesn’t flicker when the error is hydrated into the client overlay
This commit is contained in:
parent
7627eb87d6
commit
a929f8c8b7
|
@ -36,7 +36,7 @@ const StackTrace = ({ error: { name, message, stack }, info }: any) => (
|
||||||
|
|
||||||
export const styles = {
|
export const styles = {
|
||||||
errorDebug: {
|
errorDebug: {
|
||||||
background: '#0e0d0d',
|
background: '#ffffff',
|
||||||
boxSizing: 'border-box',
|
boxSizing: 'border-box',
|
||||||
overflow: 'auto',
|
overflow: 'auto',
|
||||||
padding: '24px',
|
padding: '24px',
|
||||||
|
@ -46,14 +46,14 @@ export const styles = {
|
||||||
top: 0,
|
top: 0,
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
zIndex: 9999,
|
zIndex: 9999,
|
||||||
color: '#b3adac'
|
color: '#000000'
|
||||||
},
|
},
|
||||||
|
|
||||||
stack: {
|
stack: {
|
||||||
fontFamily: '"SF Mono", "Roboto Mono", "Fira Mono", consolas, menlo-regular, monospace',
|
fontFamily: '"SF Mono", "Roboto Mono", "Fira Mono", consolas, menlo-regular, monospace',
|
||||||
fontSize: '13px',
|
fontSize: '13px',
|
||||||
lineHeight: '18px',
|
lineHeight: '18px',
|
||||||
color: '#b3adac',
|
color: '#777',
|
||||||
margin: 0,
|
margin: 0,
|
||||||
whiteSpace: 'pre-wrap',
|
whiteSpace: 'pre-wrap',
|
||||||
wordWrap: 'break-word',
|
wordWrap: 'break-word',
|
||||||
|
@ -65,7 +65,7 @@ export const styles = {
|
||||||
fontSize: '20px',
|
fontSize: '20px',
|
||||||
fontWeight: '400',
|
fontWeight: '400',
|
||||||
lineHeight: '28px',
|
lineHeight: '28px',
|
||||||
color: '#fff',
|
color: '#000000',
|
||||||
marginBottom: '0px',
|
marginBottom: '0px',
|
||||||
marginTop: '0px'
|
marginTop: '0px'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue