Skip to content

Commit d8bad57

Browse files
committed
Changed Map CSS to use flexbox. DRY'd button style
1 parent bbe2ee4 commit d8bad57

2 files changed

Lines changed: 19 additions & 8 deletions

File tree

src/app/src/Map/Map.css

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1+
.leaflet-container-wrapper {
2+
display: flex;
3+
flex-flow: column nowrap;
4+
height: 100vh;
5+
}
6+
17
.leaflet-container {
28
width: 100vw;
3-
height: 100vh;
9+
height: 100%;
10+
flex-grow: 1;
411
}
512

613
.button-container {
7-
padding-left: 1rem;
8-
padding-right: 1rem;
9-
margin-top: 2rem;
14+
display: flex;
15+
flex-flow: row nowrap;
16+
justify-content: center;
17+
z-index: 1000;
18+
width: 100vw;
19+
padding: 1rem 0;
20+
background-color: white;
1021
}

src/app/src/Map/Map.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Button from 'react-bootstrap/Button';
55

66

77
function Map() {
8-
8+
const buttonStyle = {backgroundColor:"#ADD8E6", marginLeft: '1rem', marginRight: '1rem'}
99
return (
1010
<div className="leaflet-container-wrapper">
1111
<div className="leaflet-container">
@@ -22,9 +22,9 @@ function Map() {
2222
</MapContainer>
2323
</div>
2424
<div className="button-container">
25-
<Button style={{backgroundColor:"#ADD8E6", marginLeft: '1rem', marginRight: '1rem'}} variant="primary">Near Me</Button>
26-
<Button style={{backgroundColor:"#ADD8E6", marginLeft: '1rem', marginRight: '1rem'}} variant="primary">On the Way To</Button>
27-
<Button style={{backgroundColor:"#ADD8E6", marginLeft: '1rem', marginRight: '1rem'}} variant="primary">Around Destination</Button>
25+
<Button style={buttonStyle} variant="primary">Near Me</Button>
26+
<Button style={buttonStyle} variant="primary">On the Way To</Button>
27+
<Button style={buttonStyle} variant="primary">Around Destination</Button>
2828
</div>
2929
</div>
3030
)

0 commit comments

Comments
 (0)