File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
client/src/global/components/FatalError Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ export default function FatalError(props) {
2929 return (
3030 < HelmetProvider >
3131 < Helmet title = { `${ error . status } Error: ${ error . heading } ` } />
32- < GlobalStyles styles = { styles } />
33- < Styled . Body className = "browse" >
32+ { ! contained && < GlobalStyles styles = { styles } /> }
33+ < Styled . Body className = { ! contained ? "browse" : undefined } >
3434 < Styled . Wrapper $contained = { contained } >
3535 < Styled . Inner >
3636 < Styled . Container >
Original file line number Diff line number Diff line change @@ -34,7 +34,16 @@ export const Wrapper = styled.section`
3434 padding-block-end: var(--container-padding-block-end);
3535 background-color: var(--color-base-red20);
3636
37- ${ ( { $contained } ) => $contained && `min-height: auto; flex-grow: 1;` }
37+ ${ ( { $contained } ) =>
38+ $contained &&
39+ `
40+ --_Inner-box-shadow: none;
41+ --_Inner-border-thickness: 3px;
42+
43+ min-height: auto;
44+ flex-grow: 1;
45+ background-color: transparent;
46+ ` }
3847` ;
3948
4049export const Inner = styled . div `
@@ -48,7 +57,11 @@ export const Inner = styled.div`
4857 padding-block-end: calc(0.75 * var(--container-padding-block-end));
4958 background-color: var(--background-color);
5059 border-radius: var(--box-border-radius);
51- box-shadow: 0px 12px 32px 3px var(--color-base-red45);
60+ border: var(--_Inner-border-thickness) solid var(--color-base-red45);
61+ box-shadow: var(
62+ --_Inner-box-shadow,
63+ 0px 12px 32px 3px var(--color-base-red45)
64+ );
5265` ;
5366
5467export const Container = styled . div `
You can’t perform that action at this time.
0 commit comments