Skip to content

Commit

Permalink
implemented dynamic sizing
Browse files Browse the repository at this point in the history
- implemented dynamic size for flight telemetry container
- implemented dynamic size for map
  • Loading branch information
shree-venkatesh committed Oct 28, 2023
1 parent c661315 commit 5885012
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion houston/src/pages/Control.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
border: 1px solid black;
padding: 20px;
height: 89vh;
}

.flight-telemetry {
min-width: 25%;
min-height: 600px;
min-height: 90%;
border: 1px solid black;
border-radius: 20px;
margin-left: 20px;
Expand Down
2 changes: 1 addition & 1 deletion houston/src/pages/Control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function Control() {
<div className="flight-telemetry">

</div>
<MapContainer style={{width: 600, height: 600}} center={[51.505, -0.09]} zoom={13} scrollWheelZoom={false}>
<MapContainer style={{width: "100%", height: "90%"}} center={[51.505, -0.09]} zoom={13} scrollWheelZoom={false}>
<TileLayer
attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
Expand Down

0 comments on commit 5885012

Please sign in to comment.