Skip to content

Commit

Permalink
fix zoom buttons rendering below viewport in iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
basilleaf committed Jul 31, 2022
1 parent 725141e commit 366c565
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,13 @@ body {
// customize zoom button styles
$border-radius: 6px;

.leaflet-bottom.leaflet-right {
position: fixed;
}
.leaflet-bottom .leaflet-control {
box-shadow: -6px 7px 15px #242424;
margin-right: 28px;
margin-bottom: 80px;
margin-bottom: 32px;
}
.leaflet-container .leaflet-bar {
border: unset;
Expand Down
2 changes: 1 addition & 1 deletion src/Homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ class Homepage extends React.Component {
/>
</Map>
)}

{this.state.currentVideo && this.state.videosPlaying > 0 && (
<InfoBox
hidden={false}
{...this.state.currentVideo.info()}
displayMode={this.props.displayMode}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/InfoBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function InfoBox({ desc, displayMode, title, url }) {

if (closed) {
intro.style.transition = "margin 300ms";
intro.style.marginBottom = "80px"; // .leaflet-bottom .leaflet-control in App.scss
intro.style.marginBottom = "32px"; // .leaflet-bottom .leaflet-control in App.scss
} else {
intro.style.transition = "margin 300ms 200ms";
intro.style.marginBottom = `${height + 64}px`;
Expand Down

0 comments on commit 366c565

Please sign in to comment.