mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-03 02:04:19 -07:00
Minimal refactor to make maps wider (#149)
Not particularly pretty, but it works.
This commit is contained in:
parent
a67b79a748
commit
e7ccd35aa6
4 changed files with 146 additions and 139 deletions
|
@ -11,6 +11,11 @@ interface ILayoutProps {
|
|||
}
|
||||
|
||||
const Layout = ({children, location}: ILayoutProps) => {
|
||||
const isWidthFullPage = location.pathname.endsWith('/cejst');
|
||||
const conditionalAside = isWidthFullPage ? <></> : <J40Aside/>;
|
||||
const gridCssClass = isWidthFullPage ? ' desktop:grid-col-12' :
|
||||
'desktop:grid-col-9';
|
||||
|
||||
return (
|
||||
<URLFlagProvider location={location}>
|
||||
<J40Header/>
|
||||
|
@ -18,12 +23,10 @@ const Layout = ({children, location}: ILayoutProps) => {
|
|||
className={'j40-grid-container'}>
|
||||
<Grid row>
|
||||
<main id={'main-content'}
|
||||
className={'usa-layout-docs desktop:grid-col-9 j40-main-content'}>
|
||||
<section className={'usa-prose'}>
|
||||
{children}
|
||||
</section>
|
||||
className={'usa-layout-docs j40-main-content ' + gridCssClass}>
|
||||
{children}
|
||||
</main>
|
||||
<J40Aside/>
|
||||
{conditionalAside}
|
||||
</Grid>
|
||||
</GridContainer>
|
||||
<J40Footer/>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
.mapContainer {
|
||||
height: 676px;
|
||||
margin-bottom: 29px;
|
||||
max-width: revert;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue