|
|
|
@ -19,12 +19,6 @@ const StyledLink = styled(Link)`
|
|
|
|
|
} |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
const StyledLRPaddingNav = styled.nav` |
|
|
|
|
padding-right: 10px; |
|
|
|
|
padding-left: 0; |
|
|
|
|
margin-bottom: 5px !important; |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
const StyledFloatPane = styled.div` |
|
|
|
|
min-width: 300px; |
|
|
|
|
height: 100%; |
|
|
|
@ -32,11 +26,19 @@ width: 25vw;
|
|
|
|
|
z-index: 30; |
|
|
|
|
background: #fefefefe; |
|
|
|
|
border-radius: 0 5px 5px 0; |
|
|
|
|
display: flex; |
|
|
|
|
flex-direction: column; |
|
|
|
|
position: fixed; |
|
|
|
|
left: ${props => props.hidePane ? '-500px' : 0}; |
|
|
|
|
top: 0px; |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
const StyledLRPaddingNav = styled.nav` |
|
|
|
|
padding-right: 10px; |
|
|
|
|
padding-left: 0; |
|
|
|
|
margin-bottom: 5px !important; |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
const StyledPaneToggler = styled.div` |
|
|
|
|
width: 30px |
|
|
|
|
height: 40px; |
|
|
|
@ -55,11 +57,17 @@ border-radius: 0 5px 5px 0;
|
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
const StyledScrollY = styled.div` |
|
|
|
|
height: 100vh; |
|
|
|
|
flex-grow: 1; |
|
|
|
|
overflow: auto; |
|
|
|
|
padding-bottom: 5rem; |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
const SmallMuted = styled.p` |
|
|
|
|
font-size: 0.85rem; |
|
|
|
|
color: #888; |
|
|
|
|
clear: both; |
|
|
|
|
` |
|
|
|
|
|
|
|
|
|
const SimpleAgencyList = (props) => ( |
|
|
|
|
<nav className="panel"> |
|
|
|
|
<p className="panel-heading"> |
|
|
|
@ -72,7 +80,11 @@ const SimpleAgencyList = (props) => (
|
|
|
|
|
</p> |
|
|
|
|
{props.agencies.map(ele => ( |
|
|
|
|
<Link key={ele.agency_id} className="panel-block" to={`/map/${ele.agency_id}`}> |
|
|
|
|
<div> |
|
|
|
|
{ele.name} |
|
|
|
|
<br /> |
|
|
|
|
<SmallMuted>{ele.agency_id}</SmallMuted> |
|
|
|
|
</div> |
|
|
|
|
</Link>))} |
|
|
|
|
</nav> |
|
|
|
|
) |
|
|
|
@ -140,8 +152,8 @@ class FloatPane extends Component {
|
|
|
|
|
<i className='fas fa-align-justify' /> |
|
|
|
|
</StyledPaneToggler> |
|
|
|
|
{this.renderTopLevel(loggedIn)} |
|
|
|
|
<StyledScrollY> |
|
|
|
|
<Breadcrumb {...this.state.breadcrumb} /> |
|
|
|
|
<StyledScrollY> |
|
|
|
|
<Switch> |
|
|
|
|
<Route exact path={`/map/stop/new`} render={(props) => ( |
|
|
|
|
<StopForm {...props} |
|
|
|
|